Browse Source

fix: block-uuid on page-reference

Konstantinos Kaloutas 3 years ago
parent
commit
dbd53bd896
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/block.cljs

+ 2 - 1
src/main/frontend/components/block.cljs

@@ -745,8 +745,9 @@
       (draw-component {:file file :block-uuid block-uuid}))))
       (draw-component {:file file :block-uuid block-uuid}))))
 
 
 (rum/defc page-reference < rum/reactive
 (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?)
   (let [show-brackets? (state/show-brackets?)
+        block-uuid (:block/uuid config)
         contents-page? (= "contents" (string/lower-case (str id)))]
         contents-page? (= "contents" (string/lower-case (str id)))]
     (if (string/ends-with? s ".excalidraw")
     (if (string/ends-with? s ".excalidraw")
       [:div.draw {:on-click (fn [e]
       [:div.draw {:on-click (fn [e]