mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: get-block-and-children
This commit is contained in:
@@ -79,16 +79,6 @@
|
||||
block)]
|
||||
(apply util/join-newline @contents))))
|
||||
|
||||
;; with children content
|
||||
(defn get-block-full-content
|
||||
([repo block-id]
|
||||
(get-block-full-content repo block-id (fn [block] (:block/content block))))
|
||||
([repo block-id transform-fn]
|
||||
(let [blocks (db/get-block-and-children-no-cache repo block-id)]
|
||||
(->> blocks
|
||||
(map transform-fn)
|
||||
(apply util/join-newline)))))
|
||||
|
||||
(defn get-block-end-pos-rec
|
||||
[repo block]
|
||||
(let [children (:block/children block)]
|
||||
|
||||
Reference in New Issue
Block a user