Browse Source

fix(gui): always get latest meta before deleting a table

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3569/head
Pranav C 2 years ago
parent
commit
2e1bfba0b8
  1. 2
      packages/nc-gui/composables/useTable.ts

2
packages/nc-gui/composables/useTable.ts

@ -68,7 +68,7 @@ export function useTable(onTableCreate?: (tableMeta: TableType) => void) {
cancelText: t('general.no'),
async onOk() {
try {
const meta = (await getMeta(table.id as string)) as TableType
const meta = (await getMeta(table.id as string, true)) as TableType
const relationColumns = meta?.columns?.filter((c) => c.uidt === UITypes.LinkToAnotherRecord)
if (relationColumns?.length) {

Loading…
Cancel
Save