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
Hey there I am looking for some guidance on how to handle deleting of keys from a changeset object.
I am working on a complex form which did have lots of nested arrays. I am trying out flattening the array to track the fields better. This definitely works better, but I cant work out how to delete the whole key / value and get the changes to be tracked.
Is this flattened structure passed to the Changeset contructor?
How come you are trying to delete the fields and mutate the underlying model? Is going through the changeset a possibility? e.g. changeset.set('metadata.fields[0]', null);
Hey there I am looking for some guidance on how to handle deleting of keys from a changeset object.
I am working on a complex form which did have lots of nested arrays. I am trying out flattening the array to track the fields better. This definitely works better, but I cant work out how to delete the whole key / value and get the changes to be tracked.
This is what I have
Which becomes
This makes tracking much easier.
My question. How would I delete
'fields[1]':
I trieddelete changeset.data['fields[1]']
to no availThe text was updated successfully, but these errors were encountered: