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