diff --git a/packages/utils/src/object.ts b/packages/utils/src/object.ts index ab2351d2311e..4fc7e5bd86ac 100644 --- a/packages/utils/src/object.ts +++ b/packages/utils/src/object.ts @@ -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