Skip to content

Commit

Permalink
Fix issue with angular docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jul 11, 2022
1 parent cc4f0ca commit 849cfca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/blocks/src/blocks/Description.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 849cfca

Please sign in to comment.