File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/graphql-playground-react Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " graphql-playground-react" ,
3
- "version" : " 1.5.4 " ,
3
+ "version" : " 1.5.5 " ,
4
4
"main" : " ./lib/lib.js" ,
5
5
"typings" : " ./lib/lib.d.ts" ,
6
6
"description" : " GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)." ,
Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ function* runQueryAtPosition(action) {
81
81
if ( session . operations ) {
82
82
let operationName
83
83
session . operations . forEach ( ( operation : any ) => {
84
- if ( operation . loc . start <= position && operation . loc . end >= position ) {
84
+ if (
85
+ operation . loc &&
86
+ operation . loc . start <= position &&
87
+ operation . loc . end >= position
88
+ ) {
85
89
operationName = operation . name && operation . name . value
86
90
}
87
91
} )
You can’t perform that action at this time.
0 commit comments