Skip to content

Commit

Permalink
Refetch running and queued tasks on mount (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ykeremy authored Oct 9, 2024
1 parent 8f9c339 commit e6d6843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions skyvern-frontend/src/routes/tasks/running/QueuedTasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function QueuedTasks() {
})
.then((response) => response.data);
},
refetchOnMount: true,
});

function handleNavigate(event: React.MouseEvent, id: string) {
Expand Down
1 change: 1 addition & 0 deletions skyvern-frontend/src/routes/tasks/running/RunningTasks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function RunningTasks() {
})
.then((response) => response.data);
},
refetchOnMount: true,
});

if (runningTasks?.length === 0) {
Expand Down

0 comments on commit e6d6843

Please sign in to comment.