mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-19 08:03:16 +00:00
evalArg() and updateStepArgs() in stepsInputArgs.svelte.ts selected the parent module via modules[modules.length - 1] from dfs(id, flow, true). dfs returns [module, direct_parent, grandparent, ...] (innermost to outermost), so that index resolved to the outermost ancestor instead of the direct parent. For a step inside a nested for-loop, getFlowInput then computed flow_input using only the outer loop's context, so the "Test this step" tab showed flow_input.iter.value as the outer loop's iteration value instead of the inner loop's. Runtime behavior was already correct. Use modules[1] (the direct parent). For non-nested cases (length == 2) this is identical to the previous index, so behavior is unchanged there. Fixes WIN-2096 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Windmill frontend
The Windmill frontend written in Svelte 5 + Tailwind CSS
The frontend is under AGPL, see the LICENSE file at the root of this repo