Skip to content

Commit c44847c

Browse files
committed
update object detection
1 parent 8f9e1cc commit c44847c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/notion/common/notion-page-properties.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const NOTION_PAGE_PROPERTIES = {
6969
convertToNotion: (property) => ({
7070
date: !(typeof (property.value) === "string")
7171
? property.value
72-
: property.value.includes("start")
72+
: property.value.trim().startsWith("{")
7373
? JSON.parse(property.value)
7474
: {
7575
start: property.value,

0 commit comments

Comments
 (0)