Skip to content

Commit aff2aab

Browse files
committed
Fix slug not displaying
1 parent d031ed3 commit aff2aab

File tree

1 file changed

+2
-1
lines changed
  • src/app/(dashboard)/dashboard/[[...slug]]

1 file changed

+2
-1
lines changed

src/app/(dashboard)/dashboard/[[...slug]]/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ interface DashboardPageProps {
77
}
88

99
export default async function DashboardPage({ params }: DashboardPageProps) {
10-
const slug = params.slug
10+
const slug = params.slug?.join('/') || ''
1111
const pageDisplay = slug ? `/dashboard/${slug}` : '/dashboard'
12+
1213
return (
1314
<div className='container py-4'>
1415
<Card className='text-center'>

0 commit comments

Comments
 (0)