From 029b1390ee737cd5d987aecfe7395542675a3434 Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Fri, 30 Apr 2021 21:25:39 +0200 Subject: [PATCH] :bug: Fix a small bug on Xero Node (#1681) --- packages/nodes-base/nodes/Xero/Xero.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Xero/Xero.node.ts b/packages/nodes-base/nodes/Xero/Xero.node.ts index 27369c647e..1f23e3620e 100644 --- a/packages/nodes-base/nodes/Xero/Xero.node.ts +++ b/packages/nodes-base/nodes/Xero/Xero.node.ts @@ -434,7 +434,6 @@ export class Xero implements INodeType { } } if (resource === 'contact') { - } if (operation === 'create') { const organizationId = this.getNodeParameter('organizationId', i) as string; const name = this.getNodeParameter('name', i) as string; @@ -670,6 +669,7 @@ export class Xero implements INodeType { responseData = await xeroApiRequest.call(this, 'POST', `/Contacts/${contactId}`, { organizationId, Contacts: [body] }); responseData = responseData.Contacts; } + } if (Array.isArray(responseData)) { returnData.push.apply(returnData, responseData as IDataObject[]); } else {