mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
nit improvement UX for single step flow
This commit is contained in:
@@ -410,24 +410,11 @@
|
||||
|
||||
if (jobLoaded.job_kind == 'script' || jobLoaded.job_kind == 'preview') {
|
||||
let id: string | undefined = undefined
|
||||
if (innerModule?.type == 'forloopflow') {
|
||||
if (innerModule?.type == 'forloopflow' && innerModule.modules.length == 1) {
|
||||
id = innerModule?.modules?.[0]?.id
|
||||
}
|
||||
if (id) {
|
||||
setModuleState(id, {
|
||||
...($localModuleStates[modId] ?? {}),
|
||||
iteration: undefined,
|
||||
isListJob: false,
|
||||
iteration_total: undefined
|
||||
})
|
||||
initializeByJob(id)
|
||||
|
||||
setDurationStatusByJob(
|
||||
id,
|
||||
job_id,
|
||||
|
||||
$localDurationStatuses[modId].byJob[job_id]
|
||||
)
|
||||
onJobsLoaded({ id } as FlowStatusModule, jobLoaded)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user