diff --git a/frontend/src/app/main/data/viewer.cljs b/frontend/src/app/main/data/viewer.cljs index 1d9c49f9d3..61385233f6 100644 --- a/frontend/src/app/main/data/viewer.cljs +++ b/frontend/src/app/main/data/viewer.cljs @@ -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