Skip to content

Commit cef7282

Browse files
authored
Merge pull request #373 from smartive/fix/clone-in-loop
fix: Clone in loop
2 parents 965e679 + 5112665 commit cef7282

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)