This commit is contained in:
Andrey Antukh 2026-05-19 18:02:34 +02:00
parent 5c423c3678
commit 65d8d152f0
2 changed files with 7 additions and 2 deletions

View File

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

View File

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