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
Reack hook form + nested useFieldArray ON mui datagrid + getDetailPanel -> Uncaught TypeError: Cannot assign to read only property '0' of object '[object Array]'
#12335
I have a form which contains Array and each continents have Array
i have rendered the react hook form with a table displaying the continetns and added a button to insert countries.
But when clicked on button to insert, an error is thrown which i am not able to find a fix. I have gone though all the contents on google but did not find any solution
i have created a reproducible code sandbox.
Thanks in advance
Expecting to be able to add countries via useFieldArray but it throws error Uncaught TypeError: Cannot assign to read only property '0' of object '[object Array]'
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://codesandbox.io/p/sandbox/whmmy4
steps to reproduce in the above code sandbox
I have a form which contains Array and each continents have Array
i have rendered the react hook form with a table displaying the continetns and added a button to insert countries.
But when clicked on button to insert, an error is thrown which i am not able to find a fix. I have gone though all the contents on google but did not find any solution
i have created a reproducible code sandbox.
Thanks in advance
Expecting to be able to add countries via useFieldArray but it throws error Uncaught TypeError: Cannot assign to read only property '0' of object '[object Array]'
Beta Was this translation helpful? Give feedback.
All reactions