Merge remote-tracking branch 'origin/main'

This commit is contained in:
T. Zehetbauer
2026-04-01 13:48:10 +02:00
3 changed files with 23 additions and 7 deletions

View File

@@ -25,7 +25,14 @@ export default async function VerbandPage({ params }: PageProps) {
if (!acct) return <AccountNotFound />;
const api = createVerbandApi(client);
const stats = await api.getDashboardStats(acct.id);
let stats = { totalClubs: 0, totalMembers: 0, totalRoles: 0, totalFeeTypes: 0 };
try {
stats = await api.getDashboardStats(acct.id);
} catch (e) {
console.error('Failed to load verband dashboard:', e);
}
return (
<CmsPageShell account={account} title="Verbandsverwaltung">