mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
perf: remove block-has-children? function
This commit is contained in:
@@ -571,8 +571,7 @@
|
||||
(dec (count value))
|
||||
(util/get-input-pos input))
|
||||
repo (or repo (state/get-current-repo))
|
||||
;; block-has-children? (seq children) ; not working for now
|
||||
block-has-children? (db/block-has-children? repo block)
|
||||
block-has-children? (seq (:block/children block))
|
||||
fst-block-text (subs value 0 pos)
|
||||
snd-block-text (string/triml (subs value pos))
|
||||
fst-block-text (string/trim (if with-level? fst-block-text (block/with-levels fst-block-text format block)))
|
||||
|
||||
Reference in New Issue
Block a user