mirror of
https://github.com/penpot/penpot.git
synced 2026-09-20 19:06:14 +00:00
🐛 Fix console error on viewer request
This commit is contained in:
parent
f9c02926b9
commit
02ee3f94d5
@ -326,12 +326,12 @@
|
|||||||
(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 [cause]
|
(on-error [err]
|
||||||
(let [{:keys [type]} (ex-data cause)]
|
(let [type (:type (ex-data err))]
|
||||||
(if (or (= :authentication type)
|
(if (or (= :authentication type)
|
||||||
(= :not-found type))
|
(= :not-found type))
|
||||||
(rx/empty)
|
(rx/empty)
|
||||||
(rx/throw cause))))]
|
(rx/throw err))))]
|
||||||
|
|
||||||
(ptk/reify ::fetch-comment-threads
|
(ptk/reify ::fetch-comment-threads
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user