Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon-docs: Fix props table for sections props #8904

Merged
merged 2 commits into from
Nov 21, 2019
Merged

Conversation

shilman
Copy link
Member

@shilman shilman commented Nov 21, 2019

Issue: N/A

What I did

Fix exclude logic for frameworks that export sections (i.e. everything other than react)

Created follow-up #8903

@vercel
Copy link

vercel bot commented Nov 21, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/p3lusoxcu
🌍 Preview: https://monorepo-git-fix-sections-props.storybook.now.sh

@shilman shilman added this to the 5.3.0 milestone Nov 21, 2019
@@ -37,6 +39,9 @@ const inferPropsExtractor = (framework: string): PropsExtractor | null => {
}
};

const filterRows = (rows: PropDef[], exclude: string[]) =>
rows && rows.filter((row: PropDef) => !exclude.includes(row.name));
Copy link
Member

@patricklafrance patricklafrance Nov 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you really need to validate that rows is defined? can it be undefined?

@shilman shilman merged commit 9aa9463 into next Nov 21, 2019
@shilman shilman deleted the fix-sections-props branch November 21, 2019 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants