fix: allowed_ips optional chain
This commit is contained in:
@@ -914,7 +914,7 @@ export default function AdminPage() {
|
||||
</div>}
|
||||
|
||||
{/* IP-Allowlist — nur superadmin */}
|
||||
{isSuperAdmin && smtpStatus && smtpStatus.allowed_ips?.length > 0 && (
|
||||
{isSuperAdmin && smtpStatus && (smtpStatus.allowed_ips?.length ?? 0) > 0 && (
|
||||
<Card>
|
||||
<CardContent className="pt-6 space-y-2">
|
||||
<span className="text-sm font-medium text-muted-foreground">SMTP IP-Allowlist</span>
|
||||
|
||||
Reference in New Issue
Block a user