slice-machine icon indicating copy to clipboard operation
slice-machine copied to clipboard

We can still create a slice that starts with a number but that creates error afterwards

Open chamois-d-or opened this issue 3 years ago • 0 comments

Javascript constant names cannot start with numbers. This creates an issue when slice are created with their name starting with a number.

Versions

  • slice-machine-ui: 0.4.2
  • node: 14

Steps to reproduce

Create a slice starting with a number, e.g. 2Columns

What is expected?

UI should not let users create such slices.

What is actually happening?

UI lets you do so.

chamois-d-or avatar Sep 22 '22 10:09 chamois-d-or