mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
🐛 Fix incorrect rendering of team members page
when projects are not loaded
This commit is contained in:
parent
6a624ae94a
commit
7c6ad334e7
2 changed files with 21 additions and 22 deletions
|
@ -85,19 +85,20 @@
|
|||
:ref container}
|
||||
(case section
|
||||
:dashboard-recent
|
||||
[:*
|
||||
[:> projects-section*
|
||||
{:team team
|
||||
:projects projects
|
||||
:profile profile}]
|
||||
(when (seq projects)
|
||||
[:*
|
||||
[:> projects-section*
|
||||
{:team team
|
||||
:projects projects
|
||||
:profile profile}]
|
||||
|
||||
(when ^boolean show-templates?
|
||||
[:> templates-section*
|
||||
{:profile profile
|
||||
:project-id project-id
|
||||
:team-id team-id
|
||||
:default-project-id default-project-id
|
||||
:content-width @content-width}])]
|
||||
(when ^boolean show-templates?
|
||||
[:> templates-section*
|
||||
{:profile profile
|
||||
:project-id project-id
|
||||
:team-id team-id
|
||||
:default-project-id default-project-id
|
||||
:content-width @content-width}])])
|
||||
|
||||
:dashboard-fonts
|
||||
[:> fonts-page* {:team team}]
|
||||
|
@ -256,12 +257,11 @@
|
|||
:profile profile
|
||||
:section section
|
||||
:search-term search-term}]
|
||||
(when (seq projects)
|
||||
[:> dashboard-content*
|
||||
{:projects projects
|
||||
:profile profile
|
||||
:project project
|
||||
:default-project default-project
|
||||
:section section
|
||||
:search-term search-term
|
||||
:team team}])]]))
|
||||
[:> dashboard-content*
|
||||
{:projects projects
|
||||
:profile profile
|
||||
:project project
|
||||
:default-project default-project
|
||||
:section section
|
||||
:search-term search-term
|
||||
:team team}]]]))
|
||||
|
|
|
@ -491,7 +491,6 @@
|
|||
total-members
|
||||
(count members)
|
||||
|
||||
|
||||
owner
|
||||
(mf/with-memo [members]
|
||||
(d/seek :is-owner members))
|
||||
|
|
Loading…
Add table
Reference in a new issue