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:
parent
3dd22fd298
commit
d1f7bc6198
1 changed files with 2 additions and 2 deletions
|
@ -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)))]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue