From 7433a1aa36184a6afaee072876b34f2e667698ad Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Thu, 13 Aug 2026 10:25:56 +0200 Subject: [PATCH] :bug: Fix console error on viewer request --- frontend/src/app/main/data/viewer.cljs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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