Skip to content

Commit

Permalink
fix(vars): fix $objectWalkPath with mutiple nodes in path
Browse files Browse the repository at this point in the history
  • Loading branch information
zunderscore committed Mar 8, 2024
1 parent 9ebda05 commit ff656fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/variables/builtin/object/object-walk-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const model : ReplaceVariable = {

let cursor = subject;
while (nodes.length) {
cursor = subject[nodes.shift()];
cursor = cursor[nodes.shift()];
if (cursor == null) {
return null;
}
Expand Down

0 comments on commit ff656fc

Please sign in to comment.