Browse Source

fix: force refresh on delete

pull/8665/head
rohittp 6 months ago
parent
commit
3de09e3e2c
  1. 8
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue

8
packages/nc-gui/components/dashboard/TreeView/TableNode.vue

@ -206,6 +206,12 @@ const deleteTable = () => {
isOptionsOpen.value = false
isTableDeleteDialogVisible.value = true
}
const refreshViews = async () => {
isExpanded.value = false
await nextTick()
isExpanded.value = true
}
</script>
<template>
@ -397,7 +403,7 @@ const deleteTable = () => {
:base-id="base.id"
/>
<DashboardTreeViewViewsList v-if="isExpanded" :table-id="table.id" :base-id="base.id" />
<DashboardTreeViewViewsList v-if="isExpanded" :table-id="table.id" :base-id="base.id" @deleted="refreshViews" />
</div>
</template>

Loading…
Cancel
Save