Skip to content

Commit

Permalink
fix: de-cycle ember-concurrency access of promise (#8435)
Browse files Browse the repository at this point in the history
* fix: de-cycle ember-concurrency access of promise

* decycle another
  • Loading branch information
runspired committed Feb 27, 2023
1 parent 05385f6 commit a42eda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/store/addon/-private/proxies/promise-proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function promiseArray<I, T extends EmberArrayLike<I>>(promise: Promise<T>
return Reflect.get(target, prop, receiver);
}
if (ALLOWABLE_PROPS.includes(prop)) {
return receiver[prop];
return target[prop];
}
if (!ALLOWABLE_METHODS.includes(prop)) {
deprecate(
Expand Down Expand Up @@ -190,7 +190,7 @@ export function promiseObject<T>(promise: Promise<T>): PromiseObjectProxy<T> {
}

if (ALLOWABLE_PROPS.includes(prop)) {
return receiver[prop];
return target[prop];
}

if (!ALLOWABLE_METHODS.includes(prop)) {
Expand Down

0 comments on commit a42eda1

Please sign in to comment.