Skip to content

Commit

Permalink
Added a heuristic fix for the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Larry Yu authored and hjdivad committed Feb 15, 2023
1 parent 6ce9459 commit 7a2ee8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addon/base-record-array.js
Expand Up @@ -141,6 +141,14 @@ if (CUSTOM_MODEL_CLASS) {
return record;
}

get firstObject() {
return this._objects[0];
}

get lastObject() {
return this._objects[this._objects.length - 1];
}

_removeObject(object) {
if (this._resolved) {
let idx = this._objects.indexOf(object);
Expand Down

0 comments on commit 7a2ee8f

Please sign in to comment.