Skip to content

Commit 3ebdcff

Browse files
committed
fix(trigger): revert to full-width A:Z fetch for correct row count and consistent column scope
1 parent da1e43a commit 3ebdcff

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

apps/sim/lib/webhooks/polling/google-sheets.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,12 @@ async function getDriveFileModifiedTime(
275275
}
276276

277277
/**
278-
* Fetches the full sheet (A:Z) and returns the row count, auto-detected
279-
* headers, and the 1-indexed header row number in a single API call.
278+
* Fetches the sheet (A:Z) and returns the row count, auto-detected headers,
279+
* and the 1-indexed header row number in a single API call.
280280
*
281281
* The Sheets API omits trailing empty rows, so `rows.length` equals the last
282-
* non-empty row number. Leading empty rows within the range are returned as []
283-
* so `rows[i]` reliably maps to sheet row `i + 1`. Header detection scans the
284-
* first {@link HEADER_SCAN_ROWS} rows for the first non-empty row. Returns
282+
* non-empty row in columns A–Z. Header detection scans the first
283+
* {@link HEADER_SCAN_ROWS} rows for the first non-empty row. Returns
285284
* `headerRowIndex = 0` when no header is found within the scan window.
286285
*/
287286
async function fetchSheetState(

0 commit comments

Comments
 (0)