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 e43697e8..b3ddc019 100644 --- a/packages/hoppscotch-common/src/helpers/import-export/import/postman.ts +++ b/packages/hoppscotch-common/src/helpers/import-export/import/postman.ts @@ -296,7 +296,7 @@ const getHoppReqBody = ({ { key: replacePMVarTemplating(param.key), value: replacePMVarTemplating( - param.type === "text" ? (param.value as string) : "" + param.type === "text" ? String(param.value) : "" ), active: !param.disabled, isFile: false, // TODO: Preserve isFile state ? @@ -313,7 +313,7 @@ const getHoppReqBody = ({ (param) => `${replacePMVarTemplating( param.key ?? "" - )}: ${replacePMVarTemplating(param.value ?? "")}` + )}: ${replacePMVarTemplating(String(param.value ?? ""))}` ), stringArrayJoin("\n") ),