소스 검색

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({