From bc1de4be2d59f1acf25f9601880859b74c0df1c8 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Mon, 8 Aug 2022 11:56:18 +0530 Subject: [PATCH] fix(gui-v2): on delete remove tab from state Signed-off-by: Pranav C --- 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 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() {