feat: add cross-organization member search and template cloning functionality

This commit is contained in:
T. Zehetbauer
2026-04-01 10:15:35 +02:00
parent d3db316a68
commit fd8c2cc32a
36 changed files with 9025 additions and 94 deletions

View File

@@ -27,7 +27,16 @@ export default async function ClubDetailPage({ params }: Props) {
if (!acct) return <AccountNotFound />;
const api = createVerbandApi(client);
const detail = await api.getClubDetail(clubId);
let detail: Awaited<ReturnType<typeof api.getClubDetail>>;
try {
detail = await api.getClubDetail(clubId);
} catch {
return <AccountNotFound />;
}
if (!detail?.club) return <AccountNotFound />;
return (
<CmsPageShell account={account} title={`Verein ${detail.club.name}`}>