Allow deleting external tables that you created

This commit is contained in:
Andrew Kingston 2023-06-27 12:11:58 +01:00
parent 17e7a2d59e
commit a7c6f9a60a
1 changed files with 2 additions and 2 deletions

View File

@ -67,12 +67,12 @@ export function createTablesStore() {
}
const deleteTable = async table => {
if (!table?._id || !table?._rev) {
if (!table?._id) {
return
}
await API.deleteTable({
tableId: table._id,
tableRev: table._rev,
tableRev: table._rev || "rev",
})
replaceTable(table._id, null)
}