File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1323,7 +1323,9 @@ function executeSubscription(
13231323 FieldDetailsList ,
13241324 ] ;
13251325 const [ responseName , fieldDetailsList ] = firstRootField ;
1326- const fieldName = fieldDetailsList [ 0 ] . node . name . value ;
1326+ const firstFieldDetails = fieldDetailsList [ 0 ] ;
1327+ const firstFieldNode = firstFieldDetails . node ;
1328+ const fieldName = firstFieldNode . name . value ;
13271329 const fieldDef = schema . getField ( rootType , fieldName ) ;
13281330
13291331 const fieldNodes = fieldDetailsList . map ( ( fieldDetails ) => fieldDetails . node ) ;
@@ -1352,9 +1354,9 @@ function executeSubscription(
13521354 // variables scope to fulfill any variable references.
13531355 const args = getArgumentValues (
13541356 fieldDef ,
1355- fieldNodes [ 0 ] ,
1357+ firstFieldNode ,
13561358 variableValues ,
1357- fieldDetailsList [ 0 ] . fragmentVariableValues ,
1359+ firstFieldDetails . fragmentVariableValues ,
13581360 hideSuggestions ,
13591361 ) ;
13601362
You can’t perform that action at this time.
0 commit comments