Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: linting erroring out on graphql queries (#2846)

Akash Kad86221c7d7f
diff --git a/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts b/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts
index f1dd029f3..146748eff 100644
--- a/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts
+++ b/packages/hoppscotch-app/src/helpers/editor/linting/gqlQuery.ts
@@ -28,8 +28,8 @@ export const createGQLQueryLinter: (
ch: locations![0].column - 1,
},
to: {
- line: locations![0].line - 1,
- ch: locations![0].column,
+ line: locations![0].line,
+ ch: locations![0].column - 1,
},
message,
severity: "error",