🐛 Fix console error on viewer request

This commit is contained in:
Eva Marco 2026-08-13 10:25:56 +02:00
parent ef26231b8f
commit 7433a1aa36

View File

@ -319,11 +319,12 @@
(filter #(= page-id (:page-id %)))
(d/index-by :id)
(assoc state :comment-threads)))
(on-error [{:keys [type] :as err}]
(if (or (= :authentication type)
(= :not-found type))
(rx/empty)
(rx/throw err)))]
(on-error [err]
(let [type (:type (ex-data err))]
(if (or (= :authentication type)
(= :not-found type))
(rx/empty)
(rx/throw err))))]
(ptk/reify ::fetch-comment-threads
ptk/WatchEvent