소스 검색

HUE-7458 [editor] Fix js error in syntax checker for subquery references

Johan Ahlen 8 년 전
부모
커밋
e3649bd470
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 3 - 1
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -3708,7 +3708,9 @@
       if (token.parseLocation.tables && token.parseLocation.tables.length > 0) {
         var tablePromisses = [];
         token.parseLocation.tables.forEach(function (table) {
-          tablePromisses.push(self.fetchAutocompleteDeferred(table.identifierChain));
+          if (table.identifierChain) {
+            tablePromisses.push(self.fetchAutocompleteDeferred(table.identifierChain));
+          }
         });
         $.when.apply($, tablePromisses).always(function () {
           var joined = [];