Skip to content

Commit

Permalink
fix: block ref id in block-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored and tiensonqin committed Feb 24, 2022
1 parent 30785c6 commit e416a23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,11 @@
link-depth (or link-depth 0)]
(if (> link-depth max-depth-of-links)
[:p.warning.text-sm "Block ref nesting is too deep"]
(block-reference (assoc config :reference? true :link-depth (inc link-depth)) id label*)))
(block-reference (assoc config
:reference? true
:link-depth (inc link-depth)
:block/uuid id)
id label*)))

["Page_ref" page]
(let [format (get-in config [:block :block/format])]
Expand Down

0 comments on commit e416a23

Please sign in to comment.