瀏覽代碼

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

Johan Ahlen 8 年之前
父節點
當前提交
e3649bd
共有 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 = [];