Skip to content

Commit e8e4969

Browse files
authored
Update notion.js
1 parent 5d160b7 commit e8e4969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/notion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function getAllPosts() {
4040
property.id = block.id.split('-').join('')
4141
property.fullWidth = block?.format?.page_full_width ?? false
4242
const date = block.properties?.[dateSchema]
43-
property.date = getDateValue(date)?.start_date
43+
property.date = getDateValue(date)?.start_date || null
4444
const tagArr = getPageProperty('tags', block, recordMap)
4545
property.tags = !tagArr.length ? null : tagArr.split(',')
4646
acc.push(property)

0 commit comments

Comments
 (0)