Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credentials fallback causing "Object is possibly 'undefined'" with strict-null-checks enabled #8983

Closed
Chasoor opened this issue Mar 16, 2021 · 0 comments · Fixed by #9260
Closed

Comments

@Chasoor
Copy link

Chasoor commented Mar 16, 2021

Hi, we love using the generator but the follwoing line is causing errors in our angular project (strict-null-checks enabled) since "apiKeys" is possibly undefined. Would be great if "apiKeys" had a null/undefined check with a default same as "credentials" or if the fallback is removed as suggested by the comment. Thank you in advance.

return this.apiKeys['{{name}}'] || this.apiKeys['{{keyParamName}}'];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant