Преглед на файлове

HUE-7116 [editor] Fix syntax checker js error when table ref is missing

Johan Ahlen преди 8 години
родител
ревизия
19bcf9c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

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

@@ -3748,7 +3748,7 @@
           };
           token.notFound = true;
 
-          if (token.parseLocation.type === 'table') {
+          if (token.parseLocation && token.parseLocation.type === 'table') {
             ApiHelper.getInstance().identifierChainToPath({
               identifierChain: token.parseLocation.identifierChain,
               sourceType: self.snippet.type(),