mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
remove do from acceptable ids
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user