Skip to content

Commit

Permalink
Fix loading bar not going away when cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Feb 18, 2020
1 parent 6cff829 commit 914d330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/sync_search_strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const syncSearchStrategyProvider: TSearchStrategyProvider<typeof SYNC_SEA
signal: options.signal,
});

response.then(() => loadingCount$.next(loadingCount$.getValue() - 1));
response.finally(() => loadingCount$.next(loadingCount$.getValue() - 1));

return from(response);
};
Expand Down

0 comments on commit 914d330

Please sign in to comment.