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 20, 2022
1 parent 0a4d904 commit 027b48e
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 027b48e

Please sign in to comment.