fix(CodeGenerate): filter out disabled query params

This commit is contained in:
Matias Crivolotti 2023-11-29 11:01:53 +02:00
parent 0e320535a8
commit 3bc774bf55

View File

@ -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) => {