open-forms icon indicating copy to clipboard operation
open-forms copied to clipboard

Changing variable type of user variable can crash the form editor

Open LaurensBurger opened this issue 5 months ago • 0 comments

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 avatar Oct 03 '24 10:10 LaurensBurger