Skip to content

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

Removed unnecessary lang parameter for GQL Query Editor

Andrew Bastin7b52637c5f3e
diff --git a/components/graphql/queryeditor.vue b/components/graphql/queryeditor.vue
index 72848bd3c..5f3594cf1 100644
--- a/components/graphql/queryeditor.vue
+++ b/components/graphql/queryeditor.vue
@@ -41,10 +41,6 @@ export default {
type: String,
required: false,
},
- lang: {
- type: String,
- default: "gql-query",
- },
onRunGQLQuery: {
type: Function,
default: () => {},
@@ -79,9 +75,6 @@ export default {
})
})
},
- lang(value) {
- this.editor.getSession().setMode(`ace/mode/${value}`)
- },
options(value) {
this.editor.setOptions(value)
},
@@ -93,7 +86,7 @@ export default {
let langTools = ace.require("ace/ext/language_tools")
const editor = ace.edit(this.$refs.editor, {
- mode: `ace/mode/${this.lang}`,
+ mode: `ace/mode/gql-query`,
enableBasicAutocompletion: true,
enableLiveAutocompletion: true,
...this.options,