Skip to content

Commit

Permalink
Merge pull request #314 from rdkcentral/fix/child-list-set-at
Browse files Browse the repository at this point in the history
Fixed setAt boundary check.
  • Loading branch information
erikhaandrikman authored Aug 25, 2021
2 parents 0bed496 + 8f7bf13 commit f791db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/ObjectList.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class ObjectList {
}

setAt(item, index) {
if (index >= 0 && index <= this._items.length) {
if (index >= 0 && index < this._items.length) {

if (Utils.isObjectLiteral(item)) {
const o = item;
Expand Down

0 comments on commit f791db8

Please sign in to comment.