fix: focus existing request tab instead of duplicating (#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.
This commit is contained in:
parent
2b9b45ea76
commit
a5e9f83066
1 changed files with 2 additions and 0 deletions
|
|
@ -2085,7 +2085,9 @@ const selectRequest = (selectedRequest: {
|
|||
originLocation: "user-collection",
|
||||
requestIndex: parseInt(requestIndex),
|
||||
folderPath: folderPath!,
|
||||
requestRefID: request._ref_id ?? request.id,
|
||||
})
|
||||
|
||||
if (possibleTab) {
|
||||
tabs.setActiveTab(possibleTab.value.id)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue