0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-06 14:50:20 -05:00

Merge branch 'staging' into develop

This commit is contained in:
Andrey Antukh 2024-11-29 15:51:47 +01:00
commit 0214397fb1
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -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 [_ _ _]