Skip to content

Commit

Permalink
Fixed discover subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza Katz committed May 7, 2019
1 parent 126aae5 commit fd7e469
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ function discoverController(
queryFilter.getUpdates$().subscribe({
next: () => {
$scope.filters = queryFilter.getFilters();
return $scope.updateDataSource().then(function () {
$scope.updateDataSource().then(function () {
$state.save();
});
}
Expand All @@ -577,7 +577,9 @@ function discoverController(

// fetch data when filters fire fetch event
queryFilter.getFetches$().subscribe({
next: () => $scope.fetch
next: () => {
$scope.fetch();
}
});

$scope.$watch('opts.timefield', function (timefield) {
Expand Down

0 comments on commit fd7e469

Please sign in to comment.