fix(Google Sheets Trigger Node): Show sheet name is too long error (#10542)

This commit is contained in:
Shireen Missi 2024-08-27 11:30:35 +01:00 committed by GitHub
parent bc27beb662
commit 4e15007577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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