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:
parent
81f100f012
commit
533ec36785
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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}))))
|
||||
|
|
Loading…
Add table
Reference in a new issue