mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
🐛 Coda bug fix (#891)
This commit is contained in:
parent
2616b2b200
commit
4ef9826fff
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue