Skip to content

Commit 5112665

Browse files
fix: Clone in loop
1 parent 965e679 commit 5112665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolvers/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ const applySubQueries = async (
153153
const children = hydrate(subNode, rawChildren);
154154

155155
for (const child of children) {
156-
const childClone = cloneDeep(child);
157156
for (const entry of entriesById[child[foreignKey] as string]) {
157+
const childClone = cloneDeep(child);
158158
childClone.PARENT = entry;
159159
if (isList) {
160160
(entry[fieldName] as Entry[]).push(childClone);

0 commit comments

Comments
 (0)