forked from loafle/openapi-generator-original
typescript-jquery: create empty array to prevent pushing to undefined (#6743)
Co-authored-by: Rapp Bernhard <bernhard.rapp@lec.tugraz.at>
This commit is contained in:
parent
bcefbe99c1
commit
cb87e341d1
@ -82,6 +82,7 @@ export class {{classname}} {
|
||||
{{#isListContainer}}
|
||||
if ({{paramName}}) {
|
||||
{{#isCollectionFormatMulti}}
|
||||
queryParameters['{{baseName}}'] = [];
|
||||
{{paramName}}.forEach((element: any) => {
|
||||
queryParameters['{{baseName}}'].push(element);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user