Skip to content

Commit 480600e

Browse files
committed
fix return type null error in build
1 parent e48d768 commit 480600e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/[locale]/dashboard/components/dashboard-header.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ export function DashboardHeader({ currentPath }: { currentPath: string }) {
99
selected: currentPath.indexOf('user') >= 0,
1010
disabled: false,
1111
},
12-
process.env.NEXT_PUBLIC_DATASPACE_FEATURE_ENABLED === 'true'
13-
? {
14-
label: 'My Data Spaces',
15-
url: `/dashboard/dataspace`,
16-
selected: currentPath.indexOf('dataspace') >= 0,
17-
disabled: false,
18-
}
19-
: null,
12+
...(process.env.NEXT_PUBLIC_DATASPACE_FEATURE_ENABLED === 'true'
13+
? [
14+
{
15+
label: 'My Data Spaces',
16+
url: `/dashboard/dataspace`,
17+
selected: currentPath.indexOf('dataspace') >= 0,
18+
disabled: false,
19+
},
20+
]
21+
: []),
2022
{
2123
label: 'My Organizations',
2224
url: `/dashboard/organization`,

0 commit comments

Comments
 (0)