fix: wait for org context before rendering dashboard

This commit is contained in:
Usman Baig
2026-01-22 01:42:04 +01:00
parent cbb2255024
commit 237834db3e

View File

@@ -89,6 +89,11 @@ export default function HomePage() {
)
}
// * Wait for organization context before rendering SiteList to avoid "Organization Required" flash
if (user && !user.org_id) {
return <LoadingOverlay logoSrc="/ciphera_icon_no_margins.png" title="Switching Context..." />
}
return (
<div className="mx-auto max-w-5xl p-6">
<div className="mb-8 flex items-center justify-between">