mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +08:00
DIX ember docs when description is missing for whatever reason
This commit is contained in:
parent
6ba9b32221
commit
4cf39dec63
@ -26,5 +26,10 @@ export const extractProps = componentName => {
|
||||
export const extractComponentDescription = componentName => {
|
||||
const json = getJSONDoc();
|
||||
const componentDoc = json.included.find(doc => doc.attributes.name === componentName);
|
||||
|
||||
if (!componentDoc) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return componentDoc.attributes.description;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user