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(common): resolve Postman API key authorization header import mapping (#5701)

Aaron Fort Garciac7e453455bb5
diff --git a/packages/hoppscotch-common/src/helpers/import-export/import/postman.ts b/packages/hoppscotch-common/src/helpers/import-export/import/postman.ts
index 0f277c671..1fbac662f 100644
--- a/packages/hoppscotch-common/src/helpers/import-export/import/postman.ts
+++ b/packages/hoppscotch-common/src/helpers/import-export/import/postman.ts
@@ -299,7 +299,7 @@ const getHoppReqAuth = (
getVariableValue(auth.apikey, "value") ?? ""
),
addTo:
- (getVariableValue(auth.apikey, "in") ?? "query") === "query"
+ getVariableValue(auth.apikey, "in") === "query"
? "QUERY_PARAMS"
: "HEADERS",
}