Skip to content

Commit b40a180

Browse files
committed
Fix undefined optional request headers
1 parent 9c65b12 commit b40a180

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/templates/exportService.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export const {{{name}}} = ({{>parameters}}): AxiosPromise<{{>result}}> => {
4646

4747
{{#if parametersQuery}}
4848
{{#each parametersQuery}}
49-
localVarQueryParameter['{{{prop}}}'] = {{{name}}};
49+
if(typeof {{{name}}} !== 'undefined') {
50+
localVarQueryParameter['{{{prop}}}'] = {{{name}}};
51+
}
5052
{{/each}}
5153
{{/if}}
5254

0 commit comments

Comments
 (0)