Skip to content

Commit 1206f05

Browse files
committed
Explicitly set undefined column value to null
1 parent 164e256 commit 1206f05

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

plugins/google-sheets/src/sheets.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,12 @@ function processSheetRow({
392392
return null
393393
}
394394

395+
for (const headerRowName of uniqueHeaderRowNames) {
396+
if (!(headerRowName in fieldData)) {
397+
fieldData[headerRowName] = null
398+
}
399+
}
400+
395401
return {
396402
id: itemId,
397403
slug: slugValue,

0 commit comments

Comments
 (0)