From e9d2920aedf91ce2b8422846a5e8a4cf098bdd47 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 21 Mar 2023 21:20:21 +0100 Subject: [PATCH] remove do from acceptable ids --- frontend/src/lib/components/apps/editor/appUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/apps/editor/appUtils.ts b/frontend/src/lib/components/apps/editor/appUtils.ts index 88280e3ed3..5e9cc44eff 100644 --- a/frontend/src/lib/components/apps/editor/appUtils.ts +++ b/frontend/src/lib/components/apps/editor/appUtils.ts @@ -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 }