yet-another-keyboard-builder icon indicating copy to clipboard operation
yet-another-keyboard-builder copied to clipboard

Fails when only one line switch plate

Open mart-e opened this issue 5 months ago • 0 comments

To reproduce :

Make a switch plate with all switches on the same line, for instance [{a:7},""]

Result :

TypeError: Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
    Vn Babel
    e KLEParser.js:107
    Br App.js:33
    zl React
    unstable_runWithPriority scheduler.production.min.js:18
    React 8
    unstable_runWithPriority scheduler.production.min.js:18
    React 11
    <anonymous> index.js:8
    <anonymous> index.js:12
    <anonymous> index.js:12
KLEParser.js:223:16

Note that, as a workaround, using [{a:7},""], (trailing comma) works but this is not the data generated by keyboard-layout-editor.com

mart-e avatar Sep 13 '24 16:09 mart-e