Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when only one line switch plate #10

Open
mart-e opened this issue Sep 13, 2024 · 0 comments · May be fixed by #12
Open

Fails when only one line switch plate #10

mart-e opened this issue Sep 13, 2024 · 0 comments · May be fixed by #12

Comments

@mart-e
Copy link

mart-e commented Sep 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant