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

Addon-docs/Angular: fix extractEnumValues undefined error #16524

Merged
merged 6 commits into from
Nov 17, 2021
Merged
2 changes: 1 addition & 1 deletion addons/docs/src/frameworks/angular/compodoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const extractTypeFromValue = (defaultValue: any) => {

const extractEnumValues = (compodocType: any) => {
const compodocJson = getCompodocJson();
const enumType = compodocJson?.miscellaneous.enumerations.find((x) => x.name === compodocType);
const enumType = compodocJson?.miscellaneous?.enumerations?.find((x) => x.name === compodocType);

if (enumType?.childs.every((x) => x.value)) {
return enumType.childs.map((x) => x.value);
Expand Down