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

Changing variable type of user variable can crash the form editor #4727

Closed
LaurensBurger opened this issue Oct 3, 2024 · 0 comments · Fixed by #4797
Closed

Changing variable type of user variable can crash the form editor #4727

LaurensBurger opened this issue Oct 3, 2024 · 0 comments · Fixed by #4797
Assignees
Labels
bug Something isn't working needs-backport Fix must be backported to stable release branch owner: den-haag
Milestone

Comments

@LaurensBurger
Copy link
Collaborator

Product versie / Product version

any

Customer reference

DH 698

Omschrijf het probleem / Describe the bug

When a user variable is changed from: object to array the form builders crashes:

Uncaught TypeError: n.some is not a function

it seems the value of the saved previous type causes this crash, since changing it to [] before switching to array does not crash.

Stappen om te reproduceren / Steps to reproduce

Add a user variable "object" with a value of {} (default)
Save form
Change user variable type to array

Verwacht gedrag / Expected behavior

No response

Screen resolution

None

Device

None

OS

None

Browser

No response

@LaurensBurger LaurensBurger added bug Something isn't working triage Issue needs to be validated. Remove this label if the issue considered valid. owner: den-haag labels Oct 3, 2024
@joeribekker joeribekker removed the triage Issue needs to be validated. Remove this label if the issue considered valid. label Oct 21, 2024
@joeribekker joeribekker added this to the Release 3.0 milestone Oct 21, 2024
@robinmolen robinmolen linked a pull request Oct 28, 2024 that will close this issue
9 tasks
@robinmolen robinmolen added the needs-backport Fix must be backported to stable release branch label Oct 28, 2024
@github-project-automation github-project-automation bot moved this from Implemented to Done in Development Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-backport Fix must be backported to stable release branch owner: den-haag
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants