Browse Source

Merge pull request #8665 from nocodb/nc-fix/reordering-deleting-view-causes-it-to-stuck-in-state

Nc fix/reordering deleting view causes it to stuck in state
pull/8671/head
Ramesh Mane 6 months ago committed by GitHub
parent
commit
c4ee0c9029
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      packages/nc-gui/components/dashboard/TreeView/TableNode.vue

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

@ -206,6 +206,13 @@ const deleteTable = () => {
isOptionsOpen.value = false
isTableDeleteDialogVisible.value = true
}
// TODO: Should find a way to render the components without using the `nextTick` function
const refreshViews = async () => {
isExpanded.value = false
await nextTick()
isExpanded.value = true
}
</script>
<template>
@ -397,7 +404,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