Skip to content

Commit

Permalink
check integer first
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Sep 24, 2020
1 parent be2af80 commit 578aae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/model/addon/-private/system/many-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default EmberObject.extend(MutableArray, DeprecatedEvented, {
// By using `get()`, the tracking system knows to pay attention to changes that occur.
get(this, '[]');

return this._length || 0;
return (Number.isInteger(this._length) && this._length) || 0;
},

set length(value) {
Expand Down

0 comments on commit 578aae0

Please sign in to comment.