mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 08:34:07 -08:00
fix: bug with setting metadata
This commit is contained in:
parent
cf5125ed75
commit
e9bbc714f1
|
@ -408,7 +408,10 @@ export class WorkflowExecute {
|
||||||
let metaRunData: ITaskMetadata;
|
let metaRunData: ITaskMetadata;
|
||||||
for (const nodeName of Object.keys(metadata)) {
|
for (const nodeName of Object.keys(metadata)) {
|
||||||
for ([index, metaRunData] of metadata[nodeName].entries()) {
|
for ([index, metaRunData] of metadata[nodeName].entries()) {
|
||||||
runData[nodeName][index].metadata = metaRunData;
|
runData[nodeName][index].metadata = {
|
||||||
|
...(runData[nodeName][index].metadata ?? {}),
|
||||||
|
...metaRunData,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue