From b6aca609e6660b1d6b348e4e638dbfd39c49b19f Mon Sep 17 00:00:00 2001 From: Guilhem Date: Wed, 6 Aug 2025 17:46:12 +0100 Subject: [PATCH] prevent forloop status bad update on iteration select (#6332) --- frontend/src/lib/components/FlowStatusViewerInner.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/FlowStatusViewerInner.svelte b/frontend/src/lib/components/FlowStatusViewerInner.svelte index c33293240a..2f4f6e1e17 100644 --- a/frontend/src/lib/components/FlowStatusViewerInner.svelte +++ b/frontend/src/lib/components/FlowStatusViewerInner.svelte @@ -185,7 +185,11 @@ state[key]?.selectedForloop != undefined && newValue.selectedForloop != state[key].selectedForloop ) { - if (newValue.type == 'InProgress' && state[key]?.type != 'InProgress') { + if ( + newValue.type == 'InProgress' && + state[key]?.type != 'InProgress' && + !(keepType && (state[key]?.type === 'Success' || state[key]?.type === 'Failure')) + ) { moduleState.update((state) => { state[key].type = 'InProgress' return state