File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
handlebars/typescript-angular
mustache/typescript-angular Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -200,13 +200,13 @@ export class {{classname}} {
200
200
// authentication ({ {name} }) required
201
201
{ {#isApiKey} }
202
202
{ {#isKeyInHeader} }
203
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
203
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
204
204
{{#useHttpClient} }headers = { {/useHttpClient} }headers.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
205
205
}
206
206
207
207
{ {/isKeyInHeader} }
208
208
{ {#isKeyInQuery} }
209
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
209
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
210
210
{{#useHttpClient} }queryParameters = { {/useHttpClient} }queryParameters.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
211
211
}
212
212
Original file line number Diff line number Diff line change @@ -200,13 +200,13 @@ export class {{classname}} {
200
200
// authentication ({ {name} }) required
201
201
{ {#isApiKey} }
202
202
{ {#isKeyInHeader} }
203
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
203
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
204
204
{{#useHttpClient} }headers = { {/useHttpClient} }headers.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
205
205
}
206
206
207
207
{ {/isKeyInHeader} }
208
208
{ {#isKeyInQuery} }
209
- if (this.configuration.apiKeys["{ {keyParamName} }"]) {
209
+ if (this.configuration.apiKeys && this.configuration.apiKeys ["{ {keyParamName} }"]) {
210
210
{{#useHttpClient} }queryParameters = { {/useHttpClient} }queryParameters.set('{ {keyParamName} }', this.configuration.apiKeys["{ {keyParamName} }"]);
211
211
}
212
212
You can’t perform that action at this time.
0 commit comments