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
I am creating a dynamic form builder.
One of the requirements is to have a Map like field with string as the key.
Because it's totally dynamic and the nature of the lib, keys that contain the . character, are messing the structure.
For example:
When trying to edit the key '10.03.2024 Test', instead of the expected
{mapLikeField: {'some Key': {/* some obj value*/},'someOtherKey': {/* some obj value*/},'10.03.2024 Test': {/* some obj value*/}}}
the first number in ts key string transforms the value into an array... Something like that:
{'mapLikeField': [undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,'03.2024 Test': {/* some obj value*/}]}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am creating a dynamic form builder.
One of the requirements is to have a
Map
like field with string as the key.Because it's totally dynamic and the nature of the lib, keys that contain the
.
character, are messing the structure.For example:
When trying to edit the key '10.03.2024 Test', instead of the expected
the first number in ts key string transforms the value into an array... Something like that:
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions