Browse Source

fix: treeview load project consistently

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4726/head
mertmit 2 years ago
parent
commit
f5e14c525b
  1. 8
      packages/nc-gui/components/dashboard/TreeView.vue

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

@ -35,7 +35,7 @@ const { addTab, updateTab } = useTabs()
const { $api, $e } = useNuxtApp()
const { bases, tables, loadTables, isSharedBase } = useProject()
const { project, loadProject, bases, tables, loadTables, isSharedBase } = useProject()
const { activeTab } = useTabs()
@ -324,6 +324,12 @@ const setIcon = async (icon: string, table: TableType) => {
message.error(await extractSdkResponseErrorMsg(e))
}
}
onMounted(async () => {
if (!project.value?.id) {
await loadProject()
}
})
</script>
<template>

Loading…
Cancel
Save