fix: bug with setting metadata

This commit is contained in:
Mutasem Aldmour 2024-11-08 17:02:38 +01:00
parent cf5125ed75
commit e9bbc714f1
No known key found for this signature in database
GPG key ID: 3DFA8122BB7FD6B8

View file

@ -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,
};
}
}
}