diff --git a/frontend/src/lib/components/apps/editor/appUtils.ts b/frontend/src/lib/components/apps/editor/appUtils.ts index 7c3708e867..61a070db0c 100644 --- a/frontend/src/lib/components/apps/editor/appUtils.ts +++ b/frontend/src/lib/components/apps/editor/appUtils.ts @@ -469,7 +469,17 @@ export function getAllSubgridsAndComponentIds( } export function getAllGridItems(app: App): GridItem[] { - return app.grid.concat(Object.values(app.subgrids ?? {}).flat()) + return app.grid + .concat(Object.values(app.subgrids ?? {}).flat()) + .map((x) => { + if (x?.data?.type === 'tablecomponent') { + return [x, ...x?.data?.actionButtons?.map((x) => ({ data: x, id: x.id }))] + } else if (x?.data?.type === 'menucomponent') { + return [x, ...x?.data?.menuItems?.map((x) => ({ data: x, id: x.id }))] + } + return [x] + }) + .flat() } export function deleteGridItem( diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte index ba5986331b..735f5aeeb6 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte @@ -47,7 +47,7 @@