mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-19 22:37:31 -07:00
fix(Google Sheets Trigger Node): Show sheet name is too long error (#10542)
This commit is contained in:
parent
bc27beb662
commit
4e15007577
|
@ -561,6 +561,12 @@ export class GoogleSheetsTrigger implements INodeType {
|
|||
}
|
||||
|
||||
if (event === 'anyUpdate' || event === 'rowUpdate') {
|
||||
if (sheetName.length > 31) {
|
||||
throw new NodeOperationError(
|
||||
this.getNode(),
|
||||
'Sheet name is too long choose a name with 31 characters or less',
|
||||
);
|
||||
}
|
||||
const sheetRange = `${sheetName}!${range}`;
|
||||
|
||||
let dataStartIndex = startIndex - 1;
|
||||
|
|
Loading…
Reference in a new issue