Quellcode durchsuchen

HUE-6976 [editor] Fix issue where filters are suggested in the wrong statement

Johan Ahlen vor 8 Jahren
Ursprung
Commit
2b413c5ca6
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      desktop/core/src/desktop/templates/assist.mako

+ 1 - 1
desktop/core/src/desktop/templates/assist.mako

@@ -2161,7 +2161,7 @@ from notebook.conf import ENABLE_QUERY_BUILDER, ENABLE_QUERY_SCHEDULING, get_ord
       AssistantPanel.prototype.addFilter = function () {
         var self = this;
         if (self.activeLocations() && self.activeEditor()) {
-          self.activeLocations().locations.every(function (location) {
+          self.activeLocations().activeStatementLocations.every(function (location) {
             if (location.type === 'whereClause' && location.missing) {
 
               self.activeEditor().moveCursorToPosition({