Skip to content

Commit

Permalink
fix(Google Sheets Trigger Node): Show sheet name is too long error (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ShireenMissi authored Aug 27, 2024
1 parent bc27beb commit 4e15007
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e15007

Please sign in to comment.