Skip to content

Commit

Permalink
fix(ui): hide Workflow gone message when workflow is archived (#13308)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Clucas <[email protected]>
(cherry picked from commit efb52e5)
  • Loading branch information
Joibel authored and agilgur5 committed Jul 30, 2024
1 parent 12871f7 commit 630f815
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 630f815

Please sign in to comment.