Skip to content

Commit 21f5d3f

Browse files
committed
fix small ts issue
1 parent d53e189 commit 21f5d3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/GoogleSpreadsheet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export class GoogleSpreadsheet {
157157
: authConfig.headers;
158158

159159
Object.entries(headers).forEach(([key, val]) => {
160-
config.headers.set(key, val);
160+
config.headers.set(key, String(val));
161161
});
162162
}
163163

src/lib/GoogleSpreadsheetCell.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class GoogleSpreadsheetCell {
146146

147147
/** a note attached to the cell */
148148
get note(): string {
149-
return this._draftData.note !== undefined ? this._draftData.note : this._rawData?.note;
149+
return this._draftData.note !== undefined ? this._draftData.note : this._rawData?.note || '';
150150
}
151151
set note(newVal: string | null | undefined | false) {
152152
if (newVal === null || newVal === undefined || newVal === false) newVal = '';

0 commit comments

Comments
 (0)