Browse Source

fix: drop unnecessary loadProject call

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5081/head
mertmit 2 years ago
parent
commit
847e1b2d51
  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 { project, loadProject, bases, tables, loadTables, isSharedBase } = useProject()
const { bases, tables, loadTables, isSharedBase } = useProject()
const { activeTab } = useTabs()
@ -324,12 +324,6 @@ 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