diff --git a/addons/docs/src/lib/docgen/extractDocgenProps.ts b/addons/docs/src/lib/docgen/extractDocgenProps.ts index 39af9353d055..b5e68f511608 100644 --- a/addons/docs/src/lib/docgen/extractDocgenProps.ts +++ b/addons/docs/src/lib/docgen/extractDocgenProps.ts @@ -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); }