Эх сурвалжийг харах

HUE-8758 [editor] Use is_sql check in simple ace editor to determine if syntax checking is active

Johan Ahlen 5 жил өмнө
parent
commit
bcdd410468

+ 1 - 1
desktop/core/src/desktop/js/ko/components/simpleAceEditor/ko.simpleAceEditor.js

@@ -154,7 +154,7 @@ class SimpleAceEditor {
         inFocus: ko.observable()
       };
 
-      if (connector.dialect === 'hive' || connector.dialect === 'impala') {
+      if (connector.is_sql) {
         sqlWorkerHandler.registerWorkers();
         const aceLocationHandler = new AceLocationHandler({
           editor: editor,