mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(XML Node): Fix issue with not returning valid data (#6565)
This commit is contained in:
committed by
कारतोफ्फेलस्क्रिप्ट™
parent
8f244df0f9
commit
c2b9d5ac50
@@ -5,7 +5,7 @@ import type {
|
||||
INodeType,
|
||||
INodeTypeDescription,
|
||||
} from 'n8n-workflow';
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
import { NodeOperationError, deepCopy } from 'n8n-workflow';
|
||||
|
||||
export class Xml implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
@@ -249,7 +249,7 @@ export class Xml implements INodeType {
|
||||
}
|
||||
|
||||
const json = await parser.parseStringPromise(item.json[dataPropertyName] as string);
|
||||
returnData.push({ json });
|
||||
returnData.push({ json: deepCopy(json) });
|
||||
} else if (mode === 'jsonToxml') {
|
||||
const builder = new Builder(options);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user