From 7b52637c5f3ee75a22385f672de057428eca9f7f Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Sat, 2 May 2020 15:41:34 -0400 Subject: [PATCH] Removed unnecessary lang parameter for GQL Query Editor --- components/graphql/queryeditor.vue | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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,