Skip to content

Commit 21e3a3c

Browse files
committed
avoid funny construction
1 parent d38c4c1 commit 21e3a3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/execution/execute.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,9 @@ function executeOperation(
296296
undefined,
297297
);
298298
} else {
299-
let newGroupedFieldSets;
300-
({ groupedFieldSet, newGroupedFieldSets } =
301-
buildFieldPlan(groupedFieldSet));
302-
299+
const fieldPLan = buildFieldPlan(groupedFieldSet);
300+
groupedFieldSet = fieldPLan.groupedFieldSet;
301+
const newGroupedFieldSets = fieldPLan.newGroupedFieldSets;
303302
const newDeferMap = addNewDeferredFragments(newDeferUsages, new Map());
304303

305304
graphqlWrappedResult = executeRootGroupedFieldSet(

0 commit comments

Comments
 (0)