🐛 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 243ce3650f
commit b65a013235
2 changed files with 3 additions and 2 deletions

View file

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

View file

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