0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 15:09:10 -05:00

🐛 Fix share-link incorrect error handling.

This commit is contained in:
Andrey Antukh 2021-02-01 09:33:26 +01:00 committed by Alonso Torres
parent 3dd22fd298
commit d1f7bc6198

View file

@ -135,8 +135,8 @@
(filter #(= page-id (:page-id %))) (filter #(= page-id (:page-id %)))
(d/index-by :id) (d/index-by :id)
(assoc state :comment-threads))) (assoc state :comment-threads)))
(on-error [err] (on-error [{:keys [type] :as err}]
(if (= :not-authorized (:code err)) (if (= :authentication type)
(rx/empty) (rx/empty)
(rx/throw err)))] (rx/throw err)))]