Quellcode durchsuchen

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

Johan Ahlen vor 8 Jahren
Ursprung
Commit
19bcf9c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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(),