mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Check interval when determining if 'collecting results' (#14523)
## Addresses #14515 - Include a check that a query's interval is set to something other than never when deciding whether to display "Collecting results" Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
8c6cefc4f4
commit
defd64d806
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ const NoResults = ({
|
|||
};
|
||||
|
||||
// Update status of collecting cached results
|
||||
const collectingResults = secondsCheckbackTime() > 0;
|
||||
const collectingResults =
|
||||
(queryInterval ?? 0) > 0 && secondsCheckbackTime() > 0;
|
||||
|
||||
// Converts seconds takes to update to human readable format
|
||||
const readableCheckbackTime = formatDistance(
|
||||
|
|
|
|||
Loading…
Reference in a new issue