mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
Merge pull request #13487 from storybookjs/13472-fix-angular-without-compodoc
Addon-docs: Fix angular without compodoc
This commit is contained in:
commit
9de7de9577
@ -91,6 +91,9 @@ const getComponentData = (component: Component | Directive) => {
|
||||
}
|
||||
checkValidComponentOrDirective(component);
|
||||
const compodocJson = getCompodocJson();
|
||||
if (!compodocJson) {
|
||||
return null;
|
||||
}
|
||||
checkValidCompodocJson(compodocJson);
|
||||
const { name } = component;
|
||||
const metadata = findComponentByName(name, compodocJson);
|
||||
|
Loading…
x
Reference in New Issue
Block a user