mirror of
https://github.com/penpot/penpot.git
synced 2026-06-16 04:12:03 +00:00
WIP
This commit is contained in:
parent
5c423c3678
commit
65d8d152f0
@ -82,7 +82,11 @@
|
||||
(watch [_ state _]
|
||||
(when-let [team-id (or team-id (:current-team-id state))]
|
||||
(->> (rp/cmd! :get-team-members {:team-id team-id})
|
||||
(rx/map (partial members-fetched team-id))))))))
|
||||
(rx/map (partial members-fetched team-id))
|
||||
(rx/catch (fn [error]
|
||||
(if (= :not-found (:type (ex-data error)))
|
||||
(rx/empty)
|
||||
(rx/throw error))))))))))
|
||||
|
||||
(defn- invitations-fetched
|
||||
[team-id invitations]
|
||||
|
||||
@ -228,7 +228,8 @@
|
||||
(mf/deps profile)
|
||||
(fn []
|
||||
(let [team-id (:default-team-id profile)]
|
||||
(st/emit! (dcm/go-to-dashboard-recent :team-id team-id)))))
|
||||
(st/emit! (rt/assign-exception nil)
|
||||
(dcm/go-to-dashboard-recent :team-id team-id)))))
|
||||
|
||||
on-success
|
||||
(mf/use-fn
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user