fix: block references number not working

Closed #1209
This commit is contained in:
Tienson Qin
2021-02-14 22:52:24 +08:00
parent 81d7c74b10
commit 5cc006a2eb
2 changed files with 4 additions and 4 deletions

View File

@@ -251,9 +251,9 @@
(concat title body))
(let [ref-blocks (remove string/blank? @ref-blocks)]
(assoc block :ref-blocks (map
(fn [id]
[:block/uuid (medley/uuid id)])
ref-blocks)))))
(fn [id]
[:block/uuid (medley/uuid id)])
ref-blocks)))))
(defn update-src-pos-meta!
[{:keys [body] :as block}]