diff --git a/ids.js b/ids.js index ba21b50..21d1d4c 100644 --- a/ids.js +++ b/ids.js @@ -50,6 +50,7 @@ async function fetchRegularCells(sheet) { let rowID = 1; let previousTier = 'penis tier :33'; while (true) { + if (rowID >= sheet.rowCount) break; const cell = sheet.getCell(rowID, 0); if (!cell || cell == null || cell.value == null) break; const color = cell.backgroundColor || {}; diff --git a/nlw.js b/nlw.js index f1320fc..547587f 100644 --- a/nlw.js +++ b/nlw.js @@ -43,6 +43,7 @@ async function fetchRegularCells(sheet) { let rowID = 0; while (true) { + if (rowID >= sheet.rowCount) break; const cell = sheet.getCell(rowID, 0); if (!cell || cell == null) break; try {