From e9bbc714f157f53822e2db64b09b19f0d1274ef3 Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour Date: Fri, 8 Nov 2024 17:02:38 +0100 Subject: [PATCH] fix: bug with setting metadata --- packages/core/src/WorkflowExecute.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index f70099a26c..b1c41593dd 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -408,7 +408,10 @@ export class WorkflowExecute { let metaRunData: ITaskMetadata; for (const nodeName of Object.keys(metadata)) { for ([index, metaRunData] of metadata[nodeName].entries()) { - runData[nodeName][index].metadata = metaRunData; + runData[nodeName][index].metadata = { + ...(runData[nodeName][index].metadata ?? {}), + ...metaRunData, + }; } } }