0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -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 %)))
(d/index-by :id)
(assoc state :comment-threads)))
(on-error [err]
(if (= :not-authorized (:code err))
(on-error [{:keys [type] :as err}]
(if (= :authentication type)
(rx/empty)
(rx/throw err)))]