diff --git a/src/nextjournal/clerk/render.cljs b/src/nextjournal/clerk/render.cljs index ee8b901eb..973034502 100644 --- a/src/nextjournal/clerk/render.cljs +++ b/src/nextjournal/clerk/render.cljs @@ -584,22 +584,21 @@ [body-fn* @!presented-value]])) (defn render-errors-overlay [errors] - (let [!expanded-at (r/atom {})] - [:div.fixed.bottom-0.left-0.font-mono.w-screen.z-20 - [:div.text-4xl.absolute.left-1 - {:style {:transform "rotate(-15deg)" - :text-shadow "0 2px 5px rgba(0,0,0,.1)" - :z-index 1 - :top -5}} - (rand-nth ["😩" "😬" "😑" "😖"])] - [:div.flex.ml-7 - [:div.pl-4.pr-3.pt-1.rounded-t.bg-red-100.text-red-600.text-sm.font-bold.relative.border-t.border-l.border-r.border-red-200 - {:style {:bottom -1}} - "Render Errors"]] - (into [:div] - (map (fn [e] - [throwable-view e])) - errors)])) + [:div.fixed.bottom-0.left-0.font-mono.w-screen.z-20 + [:div.text-4xl.absolute.left-1 + {:style {:transform "rotate(-15deg)" + :text-shadow "0 2px 5px rgba(0,0,0,.1)" + :z-index 1 + :top -5}} + (rand-nth ["😩" "😬" "😑" "😖"])] + [:div.flex.ml-7 + [:div.pl-4.pr-3.pt-1.rounded-t.bg-red-100.text-red-600.text-sm.font-bold.relative.border-t.border-l.border-r.border-red-200 + {:style {:bottom -1}} + "Render Errors"]] + (into [:div] + (map (fn [e] + [throwable-view e])) + errors)]) (defn clojure-exception-overlay [presented-value] (let [!expanded-at (r/atom {})] diff --git a/src/nextjournal/clerk/sci_env.cljs b/src/nextjournal/clerk/sci_env.cljs index be887d60a..d5475bb1a 100644 --- a/src/nextjournal/clerk/sci_env.cljs +++ b/src/nextjournal/clerk/sci_env.cljs @@ -78,7 +78,7 @@ (try (*eval* form) (catch js/Error e (js/console.error "error in viewer-eval" e form) - (swap! render/!render-errors conj (Throwable->map e)) + (swap! render/!render-errors conj #_:clj-kondo/ignore (Throwable->map e)) e))) (defn ordered-map-reader-cljs [coll]