mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[TIP] Toggle loading state when result set is completely loaded (#140181)
This commit is contained in:
parent
1a48a06b62
commit
4587bf7fc0
1 changed files with 2 additions and 2 deletions
|
@ -153,12 +153,12 @@ export const useIndicators = ({
|
|||
setIndicatorCount(response.rawResponse.hits.total || 0);
|
||||
|
||||
if (isCompleteResponse(response)) {
|
||||
setLoading(false);
|
||||
searchSubscription$.current?.unsubscribe();
|
||||
} else if (isErrorResponse(response)) {
|
||||
setLoading(false);
|
||||
searchSubscription$.current?.unsubscribe();
|
||||
}
|
||||
|
||||
setLoading(false);
|
||||
},
|
||||
error: (msg) => {
|
||||
searchService.showError(msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue