fix: block-uuid on page-reference

This commit is contained in:
Konstantinos Kaloutas
2022-10-19 16:03:59 +03:00
committed by Tienson Qin
parent fa6c5da6c6
commit dbd53bd896

View File

@@ -745,8 +745,9 @@
(draw-component {:file file :block-uuid block-uuid}))))
(rum/defc page-reference < rum/reactive
[html-export? s {:keys [nested-link? block-uuid id] :as config} label]
[html-export? s {:keys [nested-link? id] :as config} label]
(let [show-brackets? (state/show-brackets?)
block-uuid (:block/uuid config)
contents-page? (= "contents" (string/lower-case (str id)))]
(if (string/ends-with? s ".excalidraw")
[:div.draw {:on-click (fn [e]