🐛 Hide Organizations header/divider when org list is empty (#10833)

This commit is contained in:
María Valderrama 2026-07-27 09:54:04 +02:00 committed by GitHub
parent a749763fb1
commit bb8f965cf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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