mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-24 02:52:24 -08:00
⚡ Minor improvement to AirtableTrigger-Node
This commit is contained in:
parent
0f610e6f5c
commit
a4a04720fa
|
@ -145,6 +145,10 @@ export class AirtableTrigger implements INodeType {
|
|||
webhookData.lastTimeChecked = endDate;
|
||||
|
||||
if (Array.isArray(records) && records.length) {
|
||||
if (this.getMode() === 'manual' && records[0].fields[triggerField] === undefined) {
|
||||
throw new Error(`The Field "${triggerField}" does not exist.`);
|
||||
}
|
||||
|
||||
return [this.helpers.returnJsonArray(records)];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue