♻️ check by current Org

This commit is contained in:
Fred KISSIE
2025-12-06 00:58:11 +01:00
parent d263d282ee
commit 97489b9564

View File

@@ -97,8 +97,9 @@ export function LayoutSidebar({
} }
} }
const currentOrg = orgs.find((org) => org.orgId === orgId);
const canShowProductUpdates = const canShowProductUpdates =
user.serverAdmin || orgs[0]?.isOwner || orgs[0]?.isAdmin; user.serverAdmin || Boolean(currentOrg?.isOwner || currentOrg?.isAdmin);
return ( return (
<div <div