Skip to content

Commit

Permalink
Naive fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
krasnoukhov committed Sep 20, 2020
1 parent 3ec7db4 commit 7e8f409
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/store/addon/-private/system/store/finders.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export function _find(adapter, store, modelClass, id, internalModel, options) {
);

// ensure that regardless of id returned we assign to the correct record
payload.data.lid = identifier.lid;
// for polymorphic, if type does not match, we'll need a new identifier
if (payload.data.type === identifier.type) {
payload.data.lid = identifier.lid;
}

return store._push(payload);
},
Expand Down

0 comments on commit 7e8f409

Please sign in to comment.