Переглянути джерело

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