0
Fork 0
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:
Andrey Antukh 2024-12-09 13:25:17 +01:00
parent 6a624ae94a
commit 7c6ad334e7
2 changed files with 21 additions and 22 deletions

View file

@ -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}]]]))

View file

@ -491,7 +491,6 @@
total-members
(count members)
owner
(mf/with-memo [members]
(d/seek :is-owner members))