Skip to content

Commit e1ce2fb

Browse files
committed
fixed url properties that may be empty
1 parent 3438281 commit e1ce2fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-notion-x/src/third-party/collection-card.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
133133
.map((p) => {
134134
return block.properties[p.property]
135135
})
136+
?.filter((p) => p && p.length > 0 && p[0] != undefined) //case where the url is empty
136137
}
137138
let url = null
138139
if (

0 commit comments

Comments
 (0)