mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
fix(core): fix issue with returnJsonArray helper breaking nodes that return no data
This commit is contained in:
parent
de4ca3b0cc
commit
3de0e228cb
|
@ -1326,7 +1326,7 @@ export function returnJsonArray(jsonData: IDataObject | IDataObject[]): INodeExe
|
|||
}
|
||||
|
||||
jsonData.forEach((data: IDataObject & { json?: IDataObject }) => {
|
||||
if (data.json) {
|
||||
if (data?.json) {
|
||||
// We already have the JSON key so avoid double wrapping
|
||||
returnData.push({ ...data, json: data.json });
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue