Skip to content

Commit 9bda07b

Browse files
authored
Merge pull request NotionX#372 from NotionX/fix-cover-image
fix issue where cover image does not show
2 parents d1c8e65 + 9e1cf91 commit 9bda07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-notion-x/src/map-image-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const defaultMapImageUrl = (
4747

4848
const notionImageUrlV2 = new URL(url)
4949
let table = block.parent_table === 'space' ? 'block' : block.parent_table
50-
if (table === 'collection') {
50+
if (table === 'collection' || table === 'team') {
5151
table = 'block'
5252
}
5353
notionImageUrlV2.searchParams.set('table', table)

0 commit comments

Comments
 (0)