fix: TypeScript-Fehler bei tenantUsersSyncResult errors-Pruefung
Optional chaining auf errors.length fuehrt zu 'possibly undefined' in strict mode -- explizite null-Guard + nullish coalescing fix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2962,7 +2962,7 @@ export default function AdminPage() {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{tenantUsersSyncResult?.errors?.length > 0 && (
|
||||
{tenantUsersSyncResult && (tenantUsersSyncResult.errors?.length ?? 0) > 0 && (
|
||||
<p className="text-xs text-destructive font-mono">{tenantUsersSyncResult.errors.join(", ")}</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user