Update packages/bruno-js/src/bruno-request.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Sid
2026-01-21 18:24:41 +05:30
committed by GitHub
parent a2662c4cbf
commit 95d7dd9f43

View File

@@ -240,11 +240,13 @@ class BrunoRequest {
}
getPathParams() {
return this.req.pathParams.map((param) => ({
const params = Array.isArray(this.req.pathParams) ? this.req.pathParams : [];
return params.map((param) => ({
name: param.name,
value: param.value,
type: param.type
})) || [];
}));
}
/**