🐛 Fix unexpected 404 error on access shared link.

This commit is contained in:
Andrey Antukh 2021-02-09 17:08:15 +01:00 committed by Andrés Moya
parent 9b875aba21
commit d0a8647186

View file

@ -137,7 +137,8 @@
(d/index-by :id) (d/index-by :id)
(assoc state :comment-threads))) (assoc state :comment-threads)))
(on-error [{:keys [type] :as err}] (on-error [{:keys [type] :as err}]
(if (= :authentication type) (if (or (= :authentication type)
(= :not-found type))
(rx/empty) (rx/empty)
(rx/throw err)))] (rx/throw err)))]