mirror of
https://github.com/penpot/penpot.git
synced 2026-07-27 16:38:13 +00:00
🐛 Hide Organizations header/divider when org list is empty (#10833)
This commit is contained in:
parent
a749763fb1
commit
bb8f965cf0
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user