Skip to content

Commit

Permalink
Merge pull request #17256 from storybookjs/16895-fix-docs-disable
Browse files Browse the repository at this point in the history
Addon-docs: Fix `docs.disable` parameter on DocsPage
  • Loading branch information
shilman committed Jan 17, 2022
2 parents ad15e4c + eaddc6d commit 8747f9c
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 8747f9c

Please sign in to comment.