Return spinner when loading live query results (#3261)

This commit is contained in:
Luke Heath 2021-12-08 16:07:43 -06:00 committed by GitHub
parent 3a973af164
commit 7f8cb264f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
* Return Spinner while waiting for live queries results

View file

@ -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) {