File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,19 @@ export function substituteFragmentArguments(
2222 def : FragmentDefinitionNode ,
2323 fragmentSpread : FragmentSpreadNode ,
2424) : SelectionSetNode {
25- const argumentDefinitions = def . variableDefinitions ;
26- if ( argumentDefinitions == null || argumentDefinitions . length === 0 ) {
25+ const fragmentDefinitionVariables = def . variableDefinitions ;
26+ if (
27+ fragmentDefinitionVariables == null ||
28+ fragmentDefinitionVariables . length === 0
29+ ) {
2730 return def . selectionSet ;
2831 }
32+
2933 const argumentValues = fragmentArgumentSubstitutions (
30- argumentDefinitions ,
34+ fragmentDefinitionVariables ,
3135 fragmentSpread . arguments ,
3236 ) ;
37+
3338 return visit ( def . selectionSet , {
3439 Variable ( node ) {
3540 return argumentValues . get ( node . name . value ) ;
You can’t perform that action at this time.
0 commit comments