0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 16:00:19 -05:00

Merge pull request #5341 from penpot/palba-fix-leave-team

🐛 Fix bad redirect after leaving team
This commit is contained in:
Andrey Antukh 2024-11-22 08:31:21 +01:00 committed by GitHub
commit afcfbdedda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1118,6 +1118,9 @@
(rx/of (rt/nav :dashboard-projects {:team-id team-id}))))))
([team-id]
(ptk/reify ::go-to-projects-1
ptk/UpdateEvent
(update [_ state]
(assoc state :current-team-id team-id))
ptk/WatchEvent
(watch [_ _ _]
(rx/of (rt/nav :dashboard-projects {:team-id team-id}))))))