Skip to content

Commit 58dad3d

Browse files
committed
fix: board view when grouped by status group instead of status option
1 parent cb08feb commit 58dad3d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ function Board({ collectionView, collectionData, collection, padding }) {
6666
collectionView?.format?.board_groups2 ||
6767
[]
6868

69+
const boardGroupBy = collectionView?.format?.board_columns_by?.groupBy
70+
6971
const boardStyle = React.useMemo(
7072
() => ({
7173
paddingLeft: padding
@@ -105,7 +107,10 @@ function Board({ collectionView, collectionData, collection, padding }) {
105107
<Property
106108
schema={schema}
107109
data={[
108-
[group.value?.value?.option || group.value?.value]
110+
[
111+
group.value?.value[boardGroupBy] ||
112+
group.value?.value
113+
]
109114
]}
110115
collection={collection}
111116
/>

0 commit comments

Comments
 (0)