mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
prevent forloop status bad update on iteration select (#6332)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user