Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: wrong pick emission on save request modal for teams requests (fixes #2579)

Andrew Bastin6b8ae637477a
diff --git a/packages/hoppscotch-app/components/collections/teams/Request.vue b/packages/hoppscotch-app/components/collections/teams/Request.vue
index 8ef25dc74..22dc35046 100644
--- a/packages/hoppscotch-app/components/collections/teams/Request.vue
+++ b/packages/hoppscotch-app/components/collections/teams/Request.vue
@@ -261,7 +261,7 @@ const active = useReadonlyStream(restSaveContext$, null)
const isSelected = computed(
() =>
props.picked &&
- props.picked.pickedType === "teams-collection" &&
+ props.picked.pickedType === "teams-request" &&
props.picked.requestID === props.requestIndex
)
@@ -312,7 +312,7 @@ const selectRequest = () => {
if (props.saveRequest) {
emit("select", {
picked: {
- pickedType: "teams-collection",
+ pickedType: "teams-request",
requestID: props.requestIndex,
},
})