Refetch running and queued tasks on mount (#938)
This commit is contained in:
@@ -31,6 +31,7 @@ function QueuedTasks() {
|
|||||||
})
|
})
|
||||||
.then((response) => response.data);
|
.then((response) => response.data);
|
||||||
},
|
},
|
||||||
|
refetchOnMount: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
function handleNavigate(event: React.MouseEvent, id: string) {
|
function handleNavigate(event: React.MouseEvent, id: string) {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ function RunningTasks() {
|
|||||||
})
|
})
|
||||||
.then((response) => response.data);
|
.then((response) => response.data);
|
||||||
},
|
},
|
||||||
|
refetchOnMount: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (runningTasks?.length === 0) {
|
if (runningTasks?.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user