🐛 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} :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}])]]))

View File

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