We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f379d69 commit 146621bCopy full SHA for 146621b
src/error/GraphQLError.js
@@ -103,7 +103,7 @@ export function GraphQLError( // eslint-disable-line no-redeclare
103
104
let _positions = positions;
105
if (!_positions && nodes) {
106
- _positions = nodes.filter(node => node.loc !== null)
+ _positions = nodes.filter(node => Boolean(node.loc))
107
.map(node => node.loc.start);
108
}
109
if (_positions && _positions.length === 0) {
0 commit comments