Skip to content

fix reverting selected promise#1514

Open
ultish wants to merge 2 commits intocibernox:masterfrom
ultish:master
Open

fix reverting selected promise#1514
ultish wants to merge 2 commits intocibernox:masterfrom
ultish:master

Conversation

@ultish
Copy link

@ultish ultish commented Mar 17, 2022

I was using ember-changeset and ember-data, whereby the initial @selected value was a promise. Selecting a different non-promise-based value for EPS, and then reverting the changeset which resets the selected value back to the original promise.
EPS was ignoring this change

ultish added 2 commits March 17, 2022 16:33
When @selected is a promise initially, you update it to a non-promise value, and then revert the change back to the original promise value, EPS was ignoring the change as it still held a reference to _lastSelectedPromise.
fix for reverting a change back to original promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant