fix(backend): wrong previous result used in flow for-loop

This commit is contained in:
Ruben Fiszel
2024-06-11 17:35:38 +02:00
parent 7474145f0e
commit dcff6e9ff3
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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