Skip to content

Commit 3fe15c1

Browse files
committed
fix bugs introduced by PRs
1 parent d0bb05b commit 3fe15c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/GoogleSpreadsheetWorksheet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ export class GoogleSpreadsheetWorksheet {
346346
async loadHeaderRow(headerRowIndex?: number) {
347347
if (headerRowIndex !== undefined) this._headerRowIndex = headerRowIndex;
348348
const rows = await this.getCellsInRange(this._headerRange);
349-
await this._processHeaderRow(rows);
349+
this._processHeaderRow(rows);
350350
}
351351

352-
private async _processHeaderRow(rows: any[]) {
352+
private _processHeaderRow(rows: any[]) {
353353
if (!rows) {
354354
throw new Error('No values in the header row - fill the first row with header values before trying to interact with rows');
355355
}

src/test/manage.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('Managing doc info and sheets', () => {
194194
let sheet: GoogleSpreadsheetWorksheet;
195195

196196
beforeAll(async () => {
197-
sheet = await doc.addSheet({ title: 'validation rules test' });
197+
sheet = await doc.addSheet({ title: `validation rules test ${+new Date()}` });
198198
});
199199
afterAll(async () => {
200200
await sheet.delete();

0 commit comments

Comments
 (0)