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 Canvas block CURRENT_SELECTION handling #18130

Conversation

quickgiant
Copy link
Contributor

Issue: #18128

What I did

Added handling for the CURRENT_SELECTION token in the Canvas doc block before passing story IDs to useStories, similar to other doc blocks.

How to test

  • Open /?path=/docs/addons-docs-mdx-id--hello-story in official-storybook
  • Verify that the entire "Selection" section loads without error

@nx-cloud
Copy link

nx-cloud bot commented May 3, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e53a3be. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@shilman shilman added bug addon: docs block: other patch:yes Bugfix & documentation PR that need to be picked to main branch labels May 4, 2022
@shilman shilman changed the title Fix issue where Canvas block does not load CURRENT_SELECTION story Addon-docs: Fix Canvas block CURRENT_SELECTION handling May 4, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @quickgiant !!! 🙏

@shilman shilman merged commit ff00d58 into storybookjs:next May 4, 2022
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addon: docs block: other bug patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants