1
0
Fork 0
mirror of synced 2024-07-05 14:31:17 +12:00

new component - start numbering at 1

This commit is contained in:
Michael Shanks 2020-08-07 12:09:48 +01:00
parent efd0d39587
commit c2fd54a250

View file

@ -22,7 +22,7 @@ export default function(component, state) {
}
})
let index = 0
let index = 1
let name
while (!name) {
const tryName = `${capitalised} ${index}`