0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Prevent full dashboard state refetch on toggle visibility of templates

This commit is contained in:
Andrey Antukh 2023-11-21 16:39:45 +01:00
parent 81f100f012
commit 533ec36785
2 changed files with 3 additions and 2 deletions

View file

@ -108,7 +108,8 @@
(not= "0.0" (:main cf/version)))
[:& app.main.ui.releases/release-notes-modal {:version (:main cf/version)}]))
[:& dashboard {:route route :profile profile}]]
(when profile
[:& dashboard {:route route :profile profile}])]
:viewer
(let [{:keys [query-params path-params]} route

View file

@ -154,7 +154,7 @@
(hooks/use-shortcuts ::dashboard sc/shortcuts)
(mf/with-effect [profile team-id]
(mf/with-effect [team-id]
(st/emit! (dd/initialize {:id team-id}))
(fn []
(st/emit! (dd/finalize {:id team-id}))))