Cannot assign to read only property 'defaultColor' of object '#<Object>' #3795
Replies: 1 comment 1 reply
-
I was passing changeDefaultColor = (color: LegacyTaskColor) => {
this.defaultColor = color;
this.onChangeDefaultColor(color);
}; Fixed my issue |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here's my full class:
I'm calling
changeDefaultColor
and getting the error:All versions are latest, using mobx-react-lite, and React 17.
I tried removing
Object.assign
, that didn't change anything, not sure what's going on.Beta Was this translation helpful? Give feedback.
All reactions