feat: add cross-organization member search and template cloning functionality
This commit is contained in:
@@ -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}`}>
|
||||
|
||||
Reference in New Issue
Block a user