Skip to content

Commit 0014e4a

Browse files
authored
Make sure to reset ordering when creating the ledmap (#1547)
1 parent 6f60d7a commit 0014e4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

www/src/Pages/LEDConfigPage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const getLedButtons = (buttonLabels, map, excludeNulls, swapTpShareLabels) => {
187187
const createLedMap = (ledButtons, clear) => {
188188
if (!ledButtons) return;
189189
return ledButtons.reduce(
190-
(acc, btn) => ({ ...acc, [btn.id]: clear ? null : btn.value }),
190+
(acc, btn, index) => ({ ...acc, [btn.id]: clear ? null : index }),
191191
{},
192192
);
193193
};

0 commit comments

Comments
 (0)