mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
UI - Add timeout before refetching queries (#13009)
## Addresses #13007 Avoid race condition by waiting before queries refetch after updating automations Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
parent
38b4407671
commit
791adf19ad
1 changed files with 2 additions and 1 deletions
|
|
@ -368,7 +368,8 @@ const ManageQueriesPage = ({
|
|||
try {
|
||||
await Promise.all(updateAutomatedQueries).then(() => {
|
||||
renderFlash("success", `Successfully updated query automations.`);
|
||||
refetchAllQueries();
|
||||
// allow time for backend to update before refetching
|
||||
setTimeout(refetchAllQueries, 10);
|
||||
});
|
||||
} catch (errorResponse) {
|
||||
renderFlash(
|
||||
|
|
|
|||
Loading…
Reference in a new issue