Skip to content

Commit

Permalink
Fix viewer normalization render fn case
Browse files Browse the repository at this point in the history
  • Loading branch information
mk committed Feb 8, 2022
1 parent f386703 commit 08584f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/view.clj
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

(defn apply-viewer-unwrapping-var-from-def [{:as result :nextjournal/keys [value viewer]}]
(if viewer
(let [{:keys [transform-fn]} viewer
(let [{:keys [transform-fn]} (and (map? viewer) viewer)
value (if (and (not transform-fn) (get value :nextjournal.clerk/var-from-def))
(-> value :nextjournal.clerk/var-from-def deref)
value)]
Expand Down

0 comments on commit 08584f2

Please sign in to comment.