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

spec: reducers set parameters as an array #9566

Closed
glowcloud opened this issue Feb 12, 2024 · 1 comment
Closed

spec: reducers set parameters as an array #9566

glowcloud opened this issue Feb 12, 2024 · 1 comment

Comments

@glowcloud
Copy link
Contributor

glowcloud commented Feb 12, 2024

Describe the bug you're encountering

The value set in UPDATE_PARAM reducer

[UPDATE_PARAM]: ( state, {payload} ) => {
for multi-value parameters is an array, while the expected type of the set value is an Immutable List.

To reproduce...

Steps to reproduce the behavior:

  1. Add a console.log(List.isList(value)) to the reducer
  2. Load the default Petstore definition
  3. Scroll down to /pet/findByStatus
  4. Try it out with at least one value chosen
  5. Open console and see false

Expected behavior

The value should be converted from an array to an Immutable List in the reducer.

@char0n
Copy link
Member

char0n commented Feb 12, 2024

Addressed in #9567

@char0n char0n closed this as completed Feb 12, 2024
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