diff --git a/ui/src/app/workflows/components/workflow-details/workflow-details.tsx b/ui/src/app/workflows/components/workflow-details/workflow-details.tsx index ed772d1d23e6..3b5b239b3dd2 100644 --- a/ui/src/app/workflows/components/workflow-details/workflow-details.tsx +++ b/ui/src/app/workflows/components/workflow-details/workflow-details.tsx @@ -361,9 +361,10 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps< e => { if (e.type === 'DELETED') { setUid(e.object.metadata.uid); - setError(new Error('Workflow gone')); if (e.object.metadata.labels?.[archivalStatus]) { e.object.metadata.labels[archivalStatus] = 'Persisted'; + } else { + setError(new Error('Workflow gone')); } setWorkflow(e.object); } else {