Pārlūkot izejas kodu

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

Johan Ahlen 8 gadi atpakaļ
vecāks
revīzija
e3649bd

+ 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 = [];