ソースを参照

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

Johan Ahlen 8 年 前
コミット
2b413c5ca6
1 ファイル変更1 行追加1 行削除
  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({