mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 14:46:12 +02:00
🐛 Fix bad redirect after being removed from a team
This commit is contained in:
parent
5e2b847202
commit
093a58b9ec
2 changed files with 6 additions and 0 deletions
|
@ -224,6 +224,11 @@
|
||||||
[{:keys [team-id team-name change]}]
|
[{:keys [team-id team-name change]}]
|
||||||
(dm/assert! (uuid? team-id))
|
(dm/assert! (uuid? team-id))
|
||||||
(ptk/reify ::team-membership-change
|
(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
|
ptk/WatchEvent
|
||||||
(watch [_ state _]
|
(watch [_ state _]
|
||||||
(when (= :removed change)
|
(when (= :removed change)
|
||||||
|
|
|
@ -1122,6 +1122,7 @@
|
||||||
(ptk/reify ::go-to-projects-1
|
(ptk/reify ::go-to-projects-1
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
|
;; FIXME: Remove on 2.5
|
||||||
(assoc state :current-team-id team-id))
|
(assoc state :current-team-id team-id))
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [_ _ _]
|
(watch [_ _ _]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue