Skip to content

Fails when only one line switch plate #10

@mart-e

Description

@mart-e

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions