Skip to content

Commit efb52e5

Browse files
authored
fix(ui): hide Workflow gone message when workflow is archived (argoproj#13308)
Signed-off-by: Alan Clucas <alan@clucas.org>
1 parent 0d706d0 commit efb52e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/app/workflows/components/workflow-details/workflow-details.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,10 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps<
362362
e => {
363363
if (e.type === 'DELETED') {
364364
setUid(e.object.metadata.uid);
365-
setError(new Error('Workflow gone'));
366365
if (e.object.metadata.labels?.[archivalStatus]) {
367366
e.object.metadata.labels[archivalStatus] = 'Persisted';
367+
} else {
368+
setError(new Error('Workflow gone'));
368369
}
369370
setWorkflow(e.object);
370371
} else {

0 commit comments

Comments
 (0)