Skip to content

Commit

Permalink
fix(ui): Only redirect/reload to wf list page when wf deletion succee…
Browse files Browse the repository at this point in the history
…ds (#11676)

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
  • Loading branch information
terrytangyuan authored Aug 25, 2023
1 parent 39ff284 commit f18b339
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,12 @@ export const WorkflowDetails = ({history, location, match}: RouteComponentProps<
if (isArchivedWorkflow(workflow) && (globalDeleteArchived || !isWorkflowInCluster(workflow))) {
services.workflows.deleteArchived(workflow.metadata.uid, workflow.metadata.namespace).catch(setError);
}
navigation.goto(uiUrl(`workflows/${workflow.metadata.namespace}`));
// TODO: This is a temporary workaround so that the list of workflows
// is correctly displayed. Workflow list page needs to be more responsive.
window.location.reload();
if (error === null) {
navigation.goto(uiUrl(`workflows/${workflow.metadata.namespace}`));
// TODO: This is a temporary workaround so that the list of workflows
// is correctly displayed. Workflow list page needs to be more responsive.
window.location.reload();
}
}
});
} else if (workflowOperation.title === 'RESUBMIT') {
Expand Down

0 comments on commit f18b339

Please sign in to comment.