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

[Bug]: Passing array arguments by URL is not working as described #30458

Open
d-piatkowski-tricentis opened this issue Feb 4, 2025 · 1 comment

Comments

@d-piatkowski-tricentis
Copy link

Describe the bug

Multi select argument type works good, adds args to the URL, however if you select more than 1 option, refresh the page, or go to that URL manually, the argument won't be set, it will be undefined. It works for one option though.

I've checked multiple combinations, even editing the URL by hand - haven't found a workaround for that issue.

It can be also reproduced on 8.5.3

Reproduction link

https://stackblitz.com/edit/github-gh38gu-16crpnuh?file=src%2Fstories%2Fstrings.stories.ts

Reproduction steps

  1. Go to above link
  2. Click "Open preview in new tab" (important step)
  3. Go to Strings -> Strings Story
  4. Select two strings (see the URL)
  5. Refresh the page
  6. It says undefined

OR
4. Select one string (see the URL)
5. Refresh the page
6. It works

System

Storybook Environment Info:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm <----- active
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @storybook/addon-docs: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    @storybook/addon-essentials: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    @storybook/addon-interactions: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    @storybook/addon-onboarding: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    @storybook/angular: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    @storybook/blocks: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    @storybook/test: ^8.5.0-alpha.10 => 8.5.0-alpha.10 
    storybook: ^8.5.0-alpha.10 => 8.5.0-alpha.10

Additional context

No response

@valentinpalkovic
Copy link
Contributor

Thanks for reporting! Does anyone want to pick the issue up and work on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants