fix(Google Sheets Trigger Node): First non-header row is ignored when using on row added event (#8580)

This commit is contained in:
Michael Kret 2024-02-08 14:56:22 +02:00 committed by GitHub
parent 1e134f1454
commit 2db8231af5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -473,7 +473,7 @@ export class GoogleSheetsTrigger implements INodeType {
const [from, to] = range.split(':');
let keyRange = `${from}${keyRow}:${to}${keyRow}`;
let rangeToCheck = `${from}${startIndex}:${to}`;
let rangeToCheck = `${from}${keyRow}:${to}`;
if (options.dataLocationOnSheet) {
const locationDefine = (options.dataLocationOnSheet as IDataObject).values as IDataObject;
@ -503,7 +503,7 @@ export class GoogleSheetsTrigger implements INodeType {
rangeToCheck = `${cellDataFrom[1]}${+cellDataFrom[2] + 1}:${rangeTo}`;
} else {
keyRange = `${cellDataFrom[1]}${keyRow}:${cellDataTo[1]}${keyRow}`;
rangeToCheck = `${cellDataFrom[1]}${startIndex}:${rangeTo}`;
rangeToCheck = `${cellDataFrom[1]}${keyRow}:${rangeTo}`;
}
}