From 4ef9826fffcc8b7753fbd9bf8be1260e54a9980b Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Wed, 26 Aug 2020 15:24:24 -0400 Subject: [PATCH] :bug: Coda bug fix (#891) --- packages/nodes-base/nodes/Coda/Coda.node.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/nodes-base/nodes/Coda/Coda.node.ts b/packages/nodes-base/nodes/Coda/Coda.node.ts index 7e175f5c7d..e7d8c9c8dd 100644 --- a/packages/nodes-base/nodes/Coda/Coda.node.ts +++ b/packages/nodes-base/nodes/Coda/Coda.node.ts @@ -237,10 +237,6 @@ export class Coda implements INodeType { const options = this.getNodeParameter('options', i) as IDataObject; const endpoint = `/docs/${docId}/tables/${tableId}/rows`; - if (options.keyColumns) { - // @ts-ignore - items[i].json['keyColumns'] = options.keyColumns.split(',') as string[]; - } if (options.disableParsing) { qs.disableParsing = options.disableParsing as boolean; } @@ -264,6 +260,11 @@ export class Coda implements INodeType { }; } ((sendData[endpoint]! as IDataObject).rows! as IDataObject[]).push({ cells }); + + if (options.keyColumns) { + // @ts-ignore + (sendData[endpoint]! as IDataObject).keyColumns! = options.keyColumns.split(',') as string[]; + } } // Now that all data got collected make all the requests