fix: block insert

This commit is contained in:
Tienson Qin
2021-04-05 12:26:47 +08:00
parent 40f15c311f
commit da43e43603
5 changed files with 25 additions and 41 deletions

View File

@@ -539,11 +539,12 @@
(map :db/id))
{:block/keys [refs]} new-block
ref-pages (filter :block/name refs)
path-ref-pages (concat ref-pages parent-refs)]
(merge
block
new-block
{:block/path-refs path-ref-pages})))))
path-ref-pages (concat ref-pages parent-refs)
block (merge
block
new-block
{:block/path-refs path-ref-pages})]
(if uuid (assoc block :block/uuid uuid) block)))))
(defn with-levels
[text format {:block/keys [level pre-block?]}]