fix: Docs & Chats in other search spaces

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-04-17 23:19:56 -07:00
parent 73623aa37e
commit 2008b07304
6 changed files with 32 additions and 21 deletions

View file

@ -7,12 +7,15 @@ interface PageProps {
};
}
export default function ChatsPage({ params }: PageProps) {
export default async function ChatsPage({ params }: PageProps) {
// Await params to properly access dynamic route parameters
const searchSpaceId = params.search_space_id;
return (
<Suspense fallback={<div className="flex items-center justify-center h-[60vh]">
<div className="h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"></div>
</div>}>
<ChatsPageClient searchSpaceId={params.search_space_id} />
<ChatsPageClient searchSpaceId={searchSpaceId} />
</Suspense>
);
}