Skip to content

Commit

Permalink
cancel queries on fail (#12942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar authored Jul 19, 2017
1 parent 3aa244b commit 8f03823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ui/public/visualize/visualize.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ uiModules
// searchSource is only there for courier request handler
requestHandler($scope.vis, $scope.appState, $scope.uiState, $scope.savedObj.searchSource)
.then(resp => responseHandler($scope.vis, resp), e => {
$scope.savedObj.searchSource.cancelQueued();
$el.trigger('renderComplete');
if (isTermSizeZeroError(e)) {
return notify.error(
Expand Down

0 comments on commit 8f03823

Please sign in to comment.