From bb8f965cf05675dce489921fe83c0c62f3aa4481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Valderrama?= Date: Mon, 27 Jul 2026 09:54:04 +0200 Subject: [PATCH] :bug: Hide Organizations header/divider when org list is empty (#10833) --- frontend/src/app/main/ui/dashboard/sidebar.cljs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index 5acdc06b84..34df0c491a 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -357,9 +357,11 @@ (tr "dashboard.my-teams")] (when (= default-team-id (:default-team-id organization)) tick-icon)] - [:hr {:role "separator" :class (stl/css :team-separator)}] - [:li {:role "presentation" :class (stl/css :org-section-label)} - (tr "dashboard.section.organizations")] + (when (seq organizations) + [:* + [:hr {:role "separator" :class (stl/css :team-separator)}] + [:li {:role "presentation" :class (stl/css :org-section-label)} + (tr "dashboard.section.organizations")]]) (for [org-item organizations] [:> dropdown-menu-item* {:on-click on-org-click