Skip to content

Commit cf65eb7

Browse files
committed
fix: empty group title for board view
1 parent 5164cba commit cf65eb7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 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
@@ -104,7 +106,12 @@ function Board({ collectionView, collectionData, collection, padding }) {
104106
{group.value?.value ? (
105107
<Property
106108
schema={schema}
107-
data={[[group.value?.value]]}
109+
data={[
110+
[
111+
group.value?.value[boardGroupBy] ||
112+
group.value?.value
113+
]
114+
]}
108115
collection={collection}
109116
/>
110117
) : (

0 commit comments

Comments
 (0)