Bläddra i källkod

HUE-9247 [editor] Fix issue where the location webworker throws exception for non-active statements

Johan Ahlen 5 år sedan
förälder
incheckning
f2637c4741
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      desktop/core/src/desktop/js/sql/sqlLocationWebWorker.js

+ 2 - 2
desktop/core/src/desktop/js/sql/sqlLocationWebWorker.js

@@ -60,7 +60,7 @@ const onMessage = msg => {
         let locations = [];
         const activeStatementLocations = [];
         msg.data.statementDetails.precedingStatements.forEach(statement => {
-          handleStatement(statement, locations, msg.data.type, false);
+          handleStatement(statement, locations, parser, false);
         });
         if (msg.data.statementDetails.activeStatement) {
           handleStatement(
@@ -72,7 +72,7 @@ const onMessage = msg => {
           locations = locations.concat(activeStatementLocations);
         }
         msg.data.statementDetails.followingStatements.forEach(statement => {
-          handleStatement(statement, locations, msg.data.type, false);
+          handleStatement(statement, locations, parser, false);
         });
 
         // Add databases where missing in the table identifier chains