-
Notifications
You must be signed in to change notification settings - Fork 251
actions.reset sets model value to undefined #561
Comments
Does this also occur for you in 1.4.0 by any chance? |
@davidkpiano this is 90% for sure the same issue I'm having. I have store. However, for each key of
Which results in these actions being dispatched somehow: However, if I switch my reset out for a change to the
(@jameshy you can use that as a workaround for now also... instead of a reset, just change it to the initial on your own.) Problem occurs in versions:
I don't have time to test each version but: v1.0.15 works just fine! |
@davidkpiano I am using version 1.14.1 and I am having the same issue @lasergoat had: I have store.sites[] and when |
@agustingp That should be expected behavior - consider a non-empty array with more than one element. Choosing to reset a single value should result in, e.g., |
@davidkpiano thank you for answering! So, how can I do to reset (setting its initial value) the model of an object stored inside the array? |
If the array has dynamically loaded values, with |
When I have a model like this:
Calling actions.reset('user') multiple times results in anArray to become undefined.
Here is a gist that shows the problem (1.3.2):
https://esnextb.in/?gist=774e09eda300aa56313d2718790e8334
The same gist without the problem (1.0.6)
https://esnextb.in/?gist=df83817a62cf98bb22dcc6bb7473a498
Clicking 'Reset Form' multiple times will cause the model array to become undefined.
The text was updated successfully, but these errors were encountered: