From 53e9d0545c216f88b006953408ffef739cad0dd0 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 15 Aug 2022 17:53:02 +0800 Subject: [PATCH] fix(gui-v2): update default active index --- packages/nc-gui-v2/composables/useTabs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui-v2/composables/useTabs.ts b/packages/nc-gui-v2/composables/useTabs.ts index 4c3c08d8e4..43f64ad02d 100644 --- a/packages/nc-gui-v2/composables/useTabs.ts +++ b/packages/nc-gui-v2/composables/useTabs.ts @@ -53,8 +53,8 @@ export function useTabs() { } else if ((route.name as string)?.startsWith('nc-projectId-index-index-auth')) { return tabs.value.findIndex((t) => t.type === 'auth') } - - return -1 + // by default, it's showing Team & Auth + return 0 }, set(index: number) { if (index === -1) {