Refetch running and queued tasks on mount (#938)

This commit is contained in:
Kerem Yilmaz
2024-10-09 06:45:54 -07:00
committed by GitHub
parent 8f9c339144
commit e6d68430e2
2 changed files with 2 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ function QueuedTasks() {
})
.then((response) => response.data);
},
refetchOnMount: true,
});
function handleNavigate(event: React.MouseEvent, id: string) {

View File

@@ -31,6 +31,7 @@ function RunningTasks() {
})
.then((response) => response.data);
},
refetchOnMount: true,
});
if (runningTasks?.length === 0) {