prevent forloop status bad update on iteration select (#6332)

This commit is contained in:
Guilhem
2025-08-06 17:46:12 +01:00
committed by GitHub
parent a5f65bef40
commit b6aca609e6
@@ -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