Skip to content

Commit

Permalink
use content instead of title when export block-references
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci committed May 7, 2021
1 parent e3b3257 commit 7c8c82a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/handler/export.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
embed-blocks
(mapv (fn [b] [(str (:block/uuid b))
[(get-blocks-contents repo (:block/uuid b))
(:block/title b)]])
(:block/content b)]])
blocks)]
{:embed_blocks embed-blocks
:embed_pages pages-name-and-content}))
Expand Down Expand Up @@ -384,10 +384,10 @@
(let [[block-refs page-refs]
(get-page&block-refs-aux repo page false page&block-refs #{} #{})]
{:embed_blocks
(mapv (fn [[title _content uuid id]]
(mapv (fn [[_title content uuid id]]
[(str uuid)
[(get-blocks-contents repo uuid)
title]])
content]])
block-refs)
:embed_pages (vec page-refs)}))

Expand Down

0 comments on commit 7c8c82a

Please sign in to comment.