mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix(core): fix issue with returnJsonArray helper breaking nodes that return no data
This commit is contained in:
committed by
GitHub
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 {
|
||||
|
||||
Reference in New Issue
Block a user