Skip to content

Commit

Permalink
Pass maxProperties to walk
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Mar 7, 2022
1 parent 87f4980 commit c30f40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export function walk(

// Recursively walk through all the child nodes
const innerValue: UnknownMaybeWithToJson = source[innerKey];
acc[innerKey] = walk(innerKey, innerValue, depth - 1);
acc[innerKey] = walk(innerKey, innerValue, depth - 1, maxProperties);
}

// Once walked through all the branches, remove the parent from memo storage
Expand Down

0 comments on commit c30f40b

Please sign in to comment.