Fix prod bug where screens are not deleted when the backing table is
This commit is contained in:
parent
22f34d83ee
commit
2bbdb5ce46
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue