Skip to content

Commit a5e9f83

Browse files
authored
fix: focus existing request tab instead of duplicating (hoppscotch#5452)
Addresses an issue where multiple tabs would open even when a request tab was already active. It now correctly switches to the active tab instead.
1 parent 2b9b45e commit a5e9f83

File tree

1 file changed

+2
-0
lines changed
  • packages/hoppscotch-common/src/components/collections

1 file changed

+2
-0
lines changed

packages/hoppscotch-common/src/components/collections/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,9 @@ const selectRequest = (selectedRequest: {
20852085
originLocation: "user-collection",
20862086
requestIndex: parseInt(requestIndex),
20872087
folderPath: folderPath!,
2088+
requestRefID: request._ref_id ?? request.id,
20882089
})
2090+
20892091
if (possibleTab) {
20902092
tabs.setActiveTab(possibleTab.value.id)
20912093
} else {

0 commit comments

Comments
 (0)