🐛 Coda bug fix (#891)

This commit is contained in:
Ricardo Espinoza 2020-08-26 15:24:24 -04:00 committed by GitHub
parent 2616b2b200
commit 4ef9826fff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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