mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
🐛 Fix bad redirect after being removed from a team
This commit is contained in:
@@ -224,6 +224,11 @@
|
||||
[{:keys [team-id team-name change]}]
|
||||
(dm/assert! (uuid? team-id))
|
||||
(ptk/reify ::team-membership-change
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
;; FIXME: Remove on 2.5
|
||||
(assoc state :current-team-id (dm/get-in state [:profile :default-team-id])))
|
||||
|
||||
ptk/WatchEvent
|
||||
(watch [_ state _]
|
||||
(when (= :removed change)
|
||||
|
||||
@@ -1122,6 +1122,7 @@
|
||||
(ptk/reify ::go-to-projects-1
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
;; FIXME: Remove on 2.5
|
||||
(assoc state :current-team-id team-id))
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ _]
|
||||
|
||||
Reference in New Issue
Block a user