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

If single choice response is string else it's array #137

Open
shaheem-pp opened this issue Dec 7, 2022 · 2 comments
Open

If single choice response is string else it's array #137

shaheem-pp opened this issue Dec 7, 2022 · 2 comments

Comments

@shaheem-pp
Copy link

I created a models field with multiselectfield

When I used the data in rest response, if theere is only one selected field the data is passed as string, else it is an array

how to solve this issue?

@shaheem-pp
Copy link
Author

Attaching screenshots

when only one selected field
Screenshot 2022-12-07 at 1 30 06 PM

when multiple fields are selected
Screenshot 2022-12-07 at 1 30 24 PM

@blag
Copy link
Collaborator

blag commented May 24, 2024

Can you open a pull request that adds a test for this? It's fine if the GitHub Action tests fail, just having a failing test will help.

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

No branches or pull requests

2 participants