diff --git a/frontend/src/app/main/ui/dashboard.cljs b/frontend/src/app/main/ui/dashboard.cljs index 23bc172c0..cad843859 100644 --- a/frontend/src/app/main/ui/dashboard.cljs +++ b/frontend/src/app/main/ui/dashboard.cljs @@ -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}]]])) diff --git a/frontend/src/app/main/ui/dashboard/team.cljs b/frontend/src/app/main/ui/dashboard/team.cljs index 09fe162bd..ce2b9b791 100644 --- a/frontend/src/app/main/ui/dashboard/team.cljs +++ b/frontend/src/app/main/ui/dashboard/team.cljs @@ -491,7 +491,6 @@ total-members (count members) - owner (mf/with-memo [members] (d/seek :is-owner members))