You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updating data for property with "15" key will result in assigning to "group-key" an array of 16 elements where first 15 are null and at index 15 you will have value that you entered.
Something like that:
As a guide for a potential fix: I’m pretty sure that is a consequence of lodash set which we are using to update the data, interpreting the “number-string” as an array index.
Describe the bug
Updating data for nested property with numeric key is working kinda funny 😅
For that kind of schema:
updating data for property with "15" key will result in assigning to "group-key" an array of 16 elements where first 15 are
null
and at index 15 you will have value that you entered.Something like that:
Expected behavior
Expected
data
would be:Steps to reproduce the issue
data
of form:Screenshots
No response
Which Version of JSON Forms are you using?
v3.2.1
Package
React Material Renderers
Additional context
if there are two nested field and firstly you will enter value for "non-numeric-key" then everything will work fine.
It will look like this:
then numeric key will be added correctly:
But the other way will result in array with
null
elementsThe text was updated successfully, but these errors were encountered: