Skip to content
17 changes: 10 additions & 7 deletions ui/src/modules/jobs/pages/JobHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,16 @@ const JobHistory: React.FC = () => {
icon={<ArrowsClockwise size={16} />}
onClick={() => {
if (jobId) {
fetchJobTasks(jobId).catch(error => {
message.error("Failed to fetch job tasks after delay")
console.error(
"Error fetching job tasks after delay:",
error,
)
})
fetchJobTasks(jobId)
.then(() => {
message.destroy()
message.success("Job history refetched successfully")
})
.catch(error => {
message.destroy()
message.error("Failed to fetch job history")
console.error("Error fetching job history:", error)
})
}
}}
className="flex items-center"
Expand Down
Loading