diff --git a/CHANGES.md b/CHANGES.md index d6153f6b7..74db778f7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -51,6 +51,7 @@ - Fix issue with system shortcuts and application [#737](https://github.com/penpot/penpot/issues/737) - Fix problem with enter key shortcut [#775](https://github.com/penpot/penpot/issues/775) - Updates worksans font [#744](https://github.com/penpot/penpot/issues/744) +- Fix problem with team management in dashboard [Taiga #1475](https://tree.taiga.io/project/penpot/issue/1475) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/ui/dashboard/sidebar.cljs b/frontend/src/app/main/ui/dashboard/sidebar.cljs index bf602d7b4..9ef53c900 100644 --- a/frontend/src/app/main/ui/dashboard/sidebar.cljs +++ b/frontend/src/app/main/ui/dashboard/sidebar.cljs @@ -320,9 +320,10 @@ on-leaved-success (mf/use-callback (mf/deps team profile) - (let [team-id (:default-team-id profile)] - (da/set-current-team! team-id) - (st/emit! (rt/nav :dashboard-projects {:team-id team-id})))) + (fn [] + (let [team-id (:default-team-id profile)] + (da/set-current-team! team-id) + (st/emit! (rt/nav :dashboard-projects {:team-id team-id}))))) leave-fn (mf/use-callback