mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 12:40:12 +00:00
🐛 Fix incorrect rendering of team members page
when projects are not loaded
This commit is contained in:
parent
6a624ae94a
commit
7c6ad334e7
@ -85,19 +85,20 @@
|
|||||||
:ref container}
|
:ref container}
|
||||||
(case section
|
(case section
|
||||||
:dashboard-recent
|
:dashboard-recent
|
||||||
[:*
|
(when (seq projects)
|
||||||
[:> projects-section*
|
[:*
|
||||||
{:team team
|
[:> projects-section*
|
||||||
:projects projects
|
{:team team
|
||||||
:profile profile}]
|
:projects projects
|
||||||
|
:profile profile}]
|
||||||
|
|
||||||
(when ^boolean show-templates?
|
(when ^boolean show-templates?
|
||||||
[:> templates-section*
|
[:> templates-section*
|
||||||
{:profile profile
|
{:profile profile
|
||||||
:project-id project-id
|
:project-id project-id
|
||||||
:team-id team-id
|
:team-id team-id
|
||||||
:default-project-id default-project-id
|
:default-project-id default-project-id
|
||||||
:content-width @content-width}])]
|
:content-width @content-width}])])
|
||||||
|
|
||||||
:dashboard-fonts
|
:dashboard-fonts
|
||||||
[:> fonts-page* {:team team}]
|
[:> fonts-page* {:team team}]
|
||||||
@ -256,12 +257,11 @@
|
|||||||
:profile profile
|
:profile profile
|
||||||
:section section
|
:section section
|
||||||
:search-term search-term}]
|
:search-term search-term}]
|
||||||
(when (seq projects)
|
[:> dashboard-content*
|
||||||
[:> dashboard-content*
|
{:projects projects
|
||||||
{:projects projects
|
:profile profile
|
||||||
:profile profile
|
:project project
|
||||||
:project project
|
:default-project default-project
|
||||||
:default-project default-project
|
:section section
|
||||||
:section section
|
:search-term search-term
|
||||||
:search-term search-term
|
:team team}]]]))
|
||||||
:team team}])]]))
|
|
||||||
|
|||||||
@ -491,7 +491,6 @@
|
|||||||
total-members
|
total-members
|
||||||
(count members)
|
(count members)
|
||||||
|
|
||||||
|
|
||||||
owner
|
owner
|
||||||
(mf/with-memo [members]
|
(mf/with-memo [members]
|
||||||
(d/seek :is-owner members))
|
(d/seek :is-owner members))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user