We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24d6ca9 commit 0c7e8f7Copy full SHA for 0c7e8f7
packages/subgraph/src/dataProtector.ts
@@ -111,7 +111,8 @@ function recursiveParse(
111
112
if (entry.value.kind == JSONValueKind.OBJECT) {
113
const object = entry.value.toObject();
114
- for (let i = 0; i < object.entries.length; i++) {
+ // Check that the object is not empty before recursion
115
+ if (object.entries.length > 0) {
116
accumulator = accumulator.concat(recursiveParse(object, path));
117
}
118
} else if (entry.value.kind == JSONValueKind.STRING) {
0 commit comments