Skip to content

Commit

Permalink
Use '_id' instead of 'id' to peek record from ember data store
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-prasad-r authored and gr2m committed Jul 20, 2017
1 parent 1b36f05 commit 51be0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/services/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default DS.Store.extend({
};

let remove = (obj) => {
let record = this.peekRecord(obj.type, obj.id);
let record = this.peekRecord(obj.type, obj._id);
if (record && !get(record, 'isDeleted')) {
record.unloadRecord();
}
Expand Down

0 comments on commit 51be0dc

Please sign in to comment.