remove do from acceptable ids

This commit is contained in:
Ruben Fiszel
2023-03-21 21:20:21 +01:00
parent 89db623b64
commit e9d2920aed
@@ -71,7 +71,7 @@ export function findGridItem(app: App, id: string): GridItem | undefined {
export function getNextGridItemId(app: App): string {
const subgridsKeys = allItems(app.grid, app.subgrids).map((x) => x.id)
const withoutDash = subgridsKeys.map((element) => element.split('-')[0])
const id = getNextId([...new Set(withoutDash)])
const id = getNextId([...new Set(withoutDash), 'do'])
return id
}