Skip to content

Commit

Permalink
Addon-docs: Fix docs.disable parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jan 17, 2022
1 parent 2f83d1b commit eaddc6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/docs/src/blocks/Stories.tsx
Expand Up @@ -13,6 +13,7 @@ export const Stories: FunctionComponent<StoriesProps> = ({ title, includePrimary
const { componentStories } = useContext(DocsContext);

let stories: DocsStoryProps[] = componentStories();
stories = stories.filter((story) => !story.parameters?.docs?.disable);
if (!includePrimary) stories = stories.slice(1);

if (!stories || stories.length === 0) {
Expand Down

0 comments on commit eaddc6d

Please sign in to comment.