From 41fa3b5a8c6647c619e144b7ef5204b860465c75 Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Sun, 23 Apr 2023 16:36:11 +0600 Subject: [PATCH] fix: wrong tab selected after navigating from different route (#3012) --- packages/hoppscotch-ui/src/components/smart/Windows.vue | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/hoppscotch-ui/src/components/smart/Windows.vue b/packages/hoppscotch-ui/src/components/smart/Windows.vue index 3e18776e8..ee4f24662 100644 --- a/packages/hoppscotch-ui/src/components/smart/Windows.vue +++ b/packages/hoppscotch-ui/src/components/smart/Windows.vue @@ -228,9 +228,6 @@ const removeTabEntry = (tabID: string) => { O.chain((index) => pipe(tabEntries.value, A.deleteAt(index))), O.getOrElseW(() => throwError(`Failed to remove tab entry: ${tabID}`)) ) - // If we tried to remove the active tabEntries, switch to first tab entry - if (props.modelValue === tabID) - if (tabEntries.value.length > 0) selectTab(tabEntries.value[0][0]) } const sortTabs = (e: { oldDraggableIndex: number