Skip to content

Commit 630f815

Browse files
JoibelAnton Gilgur
authored and
Anton Gilgur
committed
fix(ui): hide Workflow gone message when workflow is archived (#13308)
Signed-off-by: Alan Clucas <[email protected]> (cherry picked from commit efb52e5)
1 parent 12871f7 commit 630f815

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
@@ -361,9 +361,10 @@ export function WorkflowDetails({history, location, match}: RouteComponentProps<
361361
e => {
362362
if (e.type === 'DELETED') {
363363
setUid(e.object.metadata.uid);
364-
setError(new Error('Workflow gone'));
365364
if (e.object.metadata.labels?.[archivalStatus]) {
366365
e.object.metadata.labels[archivalStatus] = 'Persisted';
366+
} else {
367+
setError(new Error('Workflow gone'));
367368
}
368369
setWorkflow(e.object);
369370
} else {

0 commit comments

Comments
 (0)