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

chore(tag): fix storybook example #1242

Merged
merged 1 commit into from
Jan 16, 2020
Merged

chore(tag): fix storybook example #1242

merged 1 commit into from
Jan 16, 2020

Conversation

jonnybel
Copy link
Contributor

Summary

If you go to: https://uikit.commercetools.com/?path=/story/components-tags--tag
And go to Knobs, the page crashes.

This PR fixes the problem.

@jonnybel jonnybel self-assigned this Jan 15, 2020
@vercel
Copy link

vercel bot commented Jan 15, 2020

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/commercetools/ui-kit/2vtagux7i
✅ Preview: https://ui-kit-git-chore-fix-tag-story.commercetools.now.sh

@jonnybel jonnybel requested a review from tdeekens January 15, 2020 16:06
@@ -11,7 +11,7 @@ const Story = () => (
<Section>
<Tag
type={select('type', ['normal', 'warning'], 'normal')}
linkTo={select('linkTo', ['/foo', null], '/foo')}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The option null breaks the selector and crashes the page ⚡️

Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

💯

@kodiakhq kodiakhq bot merged commit 66bd539 into master Jan 16, 2020
@kodiakhq kodiakhq bot deleted the chore-fix-tag-story branch January 16, 2020 09:45
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