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:
sysops
2026-03-20 11:36:35 +01:00
parent 72b023b598
commit 38f8cdddc7
+1 -1
View File
@@ -2962,7 +2962,7 @@ export default function AdminPage() {
</span> </span>
)} )}
</div> </div>
{tenantUsersSyncResult?.errors?.length > 0 && ( {tenantUsersSyncResult && (tenantUsersSyncResult.errors?.length ?? 0) > 0 && (
<p className="text-xs text-destructive font-mono">{tenantUsersSyncResult.errors.join(", ")}</p> <p className="text-xs text-destructive font-mono">{tenantUsersSyncResult.errors.join(", ")}</p>
)} )}
</div> </div>