Skip to content

Commit

Permalink
Merge pull request #2 from KMathyTech/revert-1-fix/resolveTypealias-u…
Browse files Browse the repository at this point in the history
…ndefined-error

Revert "[BUGFIX]: prevent app crash when no typealias found"
  • Loading branch information
Nxtivision authored Oct 29, 2021
2 parents 11af03f + 98ab330 commit 88fddca
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -217,7 +217,7 @@ const extractDefaultValue = (property: Property) => {

const resolveTypealias = (compodocType: string): string => {
const compodocJson = getCompodocJson();
const typeAlias = compodocJson?.miscellaneous?.typealiases?.find((x) => x.name === compodocType);
const typeAlias = compodocJson?.miscellaneous.typealiases.find((x) => x.name === compodocType);
return typeAlias ? resolveTypealias(typeAlias.rawtype) : compodocType;
};

Expand Down

0 comments on commit 88fddca

Please sign in to comment.