Browse Source

refactor(gui-v2): clear tabs on load

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3005/head
Pranav C 2 years ago
parent
commit
3eeffc69a6
  1. 3
      packages/nc-gui-v2/pages/nc/[projectId]/index.vue

3
packages/nc-gui-v2/pages/nc/[projectId]/index.vue

@ -4,9 +4,10 @@ import { TabType } from '~/composables'
const route = useRoute() const route = useRoute()
const { loadProject, loadTables } = useProject(route.params.projectId as string) const { loadProject, loadTables } = useProject(route.params.projectId as string)
const { addTab } = useTabs() const { addTab, clearTabs } = useTabs()
const { $state } = useNuxtApp() const { $state } = useNuxtApp()
clearTabs()
if (!route.params.type) { if (!route.params.type) {
addTab({ type: TabType.AUTH, title: 'Team & Auth' }) addTab({ type: TabType.AUTH, title: 'Team & Auth' })
} }

Loading…
Cancel
Save