We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 58f2e53 + 61b2e51 commit 31c0698Copy full SHA for 31c0698
packages/react-notion-x/src/third-party/collection-card.tsx
@@ -125,7 +125,7 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
125
p.visible && p.property !== 'title' && collection.schema[p.property]
126
)
127
.filter((p) => {
128
- if (!block.properties) return null
+ if (!block.properties) return false
129
const schema = collection.schema[p.property]
130
131
return schema.type == 'url'
@@ -136,6 +136,7 @@ export const CollectionCard: React.FC<CollectionCardProps> = ({
136
}
137
let url = null
138
if (
139
+ linkProperties &&
140
linkProperties.length > 0 &&
141
linkProperties[0].length > 0 &&
142
linkProperties[0][0].length > 0
0 commit comments