fix: :block/children should be a ref

This commit is contained in:
Tienson Qin
2020-11-10 00:38:49 +08:00
parent 1f3bc0d719
commit 09c6f16079
2 changed files with 42 additions and 10 deletions

View File

@@ -279,7 +279,9 @@
(< level last-level)
(let [current-block-children (set (->> (filter #(< level (second %)) children)
(map first)))
(map first)
(map (fn [id]
[:block/uuid id]))))
others (vec (remove #(< level (second %)) children))]
[(conj others [id level])
current-block-children]))