forked from extern/bruno
fix(CodeGenerate): filter out disabled query params
This commit is contained in:
parent
0e320535a8
commit
3bc774bf55
@ -23,12 +23,12 @@ const createHeaders = (headers) => {
|
||||
};
|
||||
|
||||
const createQuery = (queryParams = []) => {
|
||||
return queryParams.map((param) => {
|
||||
return {
|
||||
return queryParams
|
||||
.filter((param) => param.enabled)
|
||||
.map((param) => ({
|
||||
name: param.name,
|
||||
value: param.value
|
||||
};
|
||||
});
|
||||
}));
|
||||
};
|
||||
|
||||
const createPostData = (body) => {
|
||||
|
Loading…
Reference in New Issue
Block a user