mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-01 05:05:25 +08:00
Fix issue with angular docs
This commit is contained in:
parent
cc4f0ca630
commit
849cfcaed2
@ -41,7 +41,7 @@ export const getDescriptionProps = (
|
||||
const { notes, info, docs } = parameters;
|
||||
const { extractComponentDescription = noDescription, description } = docs || {};
|
||||
if (of === CURRENT_SELECTION) currentSelectionWarning();
|
||||
const target = of === CURRENT_SELECTION ? component : of;
|
||||
const target = [CURRENT_SELECTION, PRIMARY_STORY].includes(of) ? component : of;
|
||||
|
||||
// override component description
|
||||
const componentDescriptionParameter = description?.component;
|
||||
|
Loading…
x
Reference in New Issue
Block a user