mirror of
https://github.com/penpot/penpot.git
synced 2026-09-14 07:59:36 +00:00
🐛 Fix console error on viewer request
This commit is contained in:
parent
23869f3b1b
commit
b8f940aaab
@ -326,11 +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 [{:keys [type] :as err}]
|
(on-error [err]
|
||||||
(if (or (= :authentication type)
|
(let [type (:type (ex-data err))]
|
||||||
(= :not-found type))
|
(if (or (= :authentication type)
|
||||||
(rx/empty)
|
(= :not-found type))
|
||||||
(rx/throw err)))]
|
(rx/empty)
|
||||||
|
(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