fix: allowed_ips optional chain

This commit is contained in:
sysops
2026-03-17 21:45:40 +01:00
parent 24d866d100
commit 3e7f365707
+1 -1
View File
@@ -914,7 +914,7 @@ export default function AdminPage() {
</div>} </div>}
{/* IP-Allowlist — nur superadmin */} {/* IP-Allowlist — nur superadmin */}
{isSuperAdmin && smtpStatus && smtpStatus.allowed_ips?.length > 0 && ( {isSuperAdmin && smtpStatus && (smtpStatus.allowed_ips?.length ?? 0) > 0 && (
<Card> <Card>
<CardContent className="pt-6 space-y-2"> <CardContent className="pt-6 space-y-2">
<span className="text-sm font-medium text-muted-foreground">SMTP IP-Allowlist</span> <span className="text-sm font-medium text-muted-foreground">SMTP IP-Allowlist</span>