Skip to content

Commit

Permalink
does this fix all the weird issues ?
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Jun 8, 2018
1 parent 3a7fe8c commit c8822cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/core_plugins/kibana/public/visualize/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,15 @@ function VisEditor($scope, $route, timefilter, AppState, $window, kbnUrl, courie
timefilter.on('update', updateTimeRange);

// update the searchSource when filters update
$scope.$listen(queryFilter, 'update', $scope.fetch);
$scope.$listen(queryFilter, 'update', function () {
$scope.fetch();
});

// update the searchSource when query updates
$scope.fetch = function () {
$state.save();
savedVis.searchSource.set('query', $state.query);
savedVis.searchSource.set('filter', $scope.state.filters);
savedVis.searchSource.set('filter', $state.filters);
$scope.vis.forceReload();
};

Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/vis/request_handlers/courier.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const CourierRequestHandlerProvider = function (Private, courier, timefilter) {
return vis.onSearchRequestStart(searchSource, searchRequest);
});

timeFilterSearchSource.filter(() => {
timeFilterSearchSource.set('filter', () => {
return timefilter.get(searchSource.get('index'), timeRange);
});

Expand Down

0 comments on commit c8822cd

Please sign in to comment.