Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix reverting selected promise #1514

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix reverting selected promise #1514

wants to merge 2 commits into from

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

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.

None yet

1 participant