Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklafrance committed Nov 21, 2019
1 parent 87e705d commit 723f27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/docs/src/lib/docgen/extractDocgenProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ function extractProp(
return null;
}

export function extractComponentDescription(component: Component): string {
return getDocgenDescription(component);
export function extractComponentDescription(component?: Component): string {
return !isNil(component) && getDocgenDescription(component);
}

0 comments on commit 723f27f

Please sign in to comment.