Explorar el Código

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

Johan Ahlen hace 8 años
padre
commit
19bcf9c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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(),