mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 16:05:58 +00:00
fix(backend): wrong previous result used in flow for-loop
This commit is contained in:
@@ -2022,7 +2022,8 @@ async fn push_next_flow_job<R: rsmq_async::RsmqConnection + Send + Sync + Clone>
|
||||
|
||||
args.insert("iter".to_string(), to_raw_value(new_args));
|
||||
if let Some(input_transforms) = simple_input_transforms {
|
||||
let ctx = get_transform_context(&flow_job, &previous_id, &status).await?;
|
||||
//previous id is none because we do not want to use previous id if we are in a for loop
|
||||
let ctx = get_transform_context(&flow_job, "", &status).await?;
|
||||
transform_inp = transform_input(
|
||||
Arc::new(args),
|
||||
arc_last_job_result.clone(),
|
||||
|
||||
@@ -318,7 +318,7 @@
|
||||
</tr>
|
||||
</Head>
|
||||
<tbody class="divide-y">
|
||||
{#each slicedData as { _id, rowData }, index (index)}
|
||||
{#each slicedData.filter((x) => x) as { _id, rowData }, index (index)}
|
||||
<Row dividable selected={selection.includes(_id) && colSelection.length == 0}>
|
||||
<Cell first={true} last={false} class="w-6">
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user