Skip to content

Commit 1c7be0b

Browse files
committed
fixed board views not working with new group by
1 parent bf81f2a commit 1c7be0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ function Board({ collectionView, collectionData, collection, padding }) {
125125

126126
<div className='notion-board-body'>
127127
{boardGroups.map((p, index) => {
128-
if (!(collectionData as any).board_columns?.results) {
129-
return null
130-
}
128+
const boardResults = (collectionData as any).board_columns?.results
129+
if (!boardResults) return null
130+
if (!p?.value?.type) return null
131131

132132
const schema = collection.schema[p.property]
133133
const group = (collectionData as any)[
134-
`results:select:${p?.value?.value || 'uncategorized'}`
134+
`results:${p?.value?.type}:${p?.value?.value || 'uncategorized'}`
135135
]
136136

137137
if (!group || !schema || p.hidden) {

0 commit comments

Comments
 (0)