mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Return spinner when loading live query results (#3261)
This commit is contained in:
parent
3a973af164
commit
7f8cb264f8
2 changed files with 3 additions and 2 deletions
1
changes/issue-3197-queries-loading
Normal file
1
changes/issue-3197-queries-loading
Normal file
|
|
@ -0,0 +1 @@
|
|||
* Return Spinner while waiting for live queries results
|
||||
|
|
@ -46,7 +46,7 @@ const QueryResults = ({
|
|||
onStopQuery,
|
||||
setSelectedTargets,
|
||||
goToQueryEditor,
|
||||
}: IQueryResultsProps) => {
|
||||
}: IQueryResultsProps): JSX.Element => {
|
||||
const { hosts_count: hostsCount, query_results: queryResults, errors } =
|
||||
campaign || {};
|
||||
|
||||
|
|
@ -193,7 +193,7 @@ const QueryResults = ({
|
|||
isQueryFinished && (!hostsCount.successful || emptyResults);
|
||||
|
||||
if (hasNoResultsYet) {
|
||||
return null;
|
||||
return <Spinner />;
|
||||
}
|
||||
|
||||
if (finishedWithNoResults) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue