diff --git a/packages/nc-gui-v2/composables/useTabs.ts b/packages/nc-gui-v2/composables/useTabs.ts index 449abc7897..384e20e15f 100644 --- a/packages/nc-gui-v2/composables/useTabs.ts +++ b/packages/nc-gui-v2/composables/useTabs.ts @@ -18,8 +18,8 @@ export interface TabItem { function getPredicate(key: Partial) { return (tab: TabItem) => (!('id' in key) || tab.id === key.id) && - (!('title' in key) || tab.title === key.id) && - (!('type' in key) || tab.type === key.id) + (!('title' in key) || tab.title === key.title) && + (!('type' in key) || tab.type === key.type) } export function useTabs() {