1
0
Fork 0
mirror of synced 2024-07-14 02:36:22 +12:00

Fix prod bug where screens are not deleted when the backing table is

This commit is contained in:
Andrew Kingston 2023-08-25 12:29:32 +01:00
parent 22f34d83ee
commit 2bbdb5ce46

View file

@ -44,7 +44,10 @@
const isSelected = $params.tableId === table._id const isSelected = $params.tableId === table._id
try { try {
await tables.delete(table) await tables.delete(table)
await store.actions.screens.delete(templateScreens) // Screens need deleted one at a time because of undo/redo
for (let screen of templateScreens) {
await store.actions.screens.delete(screen)
}
if (table.type === "external") { if (table.type === "external") {
await datasources.fetch() await datasources.fetch()
} }