Skip to content

Commit

Permalink
Fix [Workflows] Missing refresh after success rerun (#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariana-furyk authored Dec 10, 2024
1 parent 5b11aa1 commit c7b2a71
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/elements/WorkflowsTable/WorkflowsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,8 @@ const WorkflowsTable = React.forwardRef(
location.pathname
.split('/')
.splice(0, location.pathname.split('/').indexOf(params.workflowId) + 1)
.join('/')
+ window.location.search
)
.join('/') + window.location.search
)
})
},
[dispatch, filters, location.pathname, navigate, params.workflowId, refreshWorkflow]
Expand Down Expand Up @@ -398,22 +397,23 @@ const WorkflowsTable = React.forwardRef(
workflow => {
dispatch(rerunWorkflow({ project: workflow.project, workflowId: workflow.id }))
.unwrap()
.then(() =>
.then(() => {
handleRetry()
dispatch(
setNotification({
status: 200,
id: Math.random(),
message: 'Workflow ran successfully.'
})
)
)
})
.catch(error => {
showErrorNotification(dispatch, error, 'Workflow did not run successfully', '', () =>
handleRerun(workflow)
)
})
},
[dispatch]
[dispatch, handleRetry]
)

const actionsMenu = useMemo(() => {
Expand Down

0 comments on commit c7b2a71

Please sign in to comment.