Skip to content

Commit

Permalink
Update RestQuery.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Sep 4, 2021
1 parent c579803 commit 64a49c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RestQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ function includePath(config, auth, response, path, restOptions = {}) {
return set;
}
}
if (i == keyPath.length - 1) {
if (i + 1 === keyPath.length) {
set.add(keyPath[i]);
}
return set;
Expand Down

0 comments on commit 64a49c7

Please sign in to comment.