mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
fix: when searching for text which is in a collapsed block, it is not opened
close #4017
This commit is contained in:
@@ -16,18 +16,6 @@
|
||||
[repo page-id]
|
||||
(>= (db/get-page-blocks-count repo page-id) initial-blocks-length))
|
||||
|
||||
(defn get-block-ids
|
||||
[block]
|
||||
(let [ids (atom [])
|
||||
_ (walk/prewalk
|
||||
(fn [form]
|
||||
(when (map? form)
|
||||
(when-let [id (:block/uuid form)]
|
||||
(swap! ids conj id)))
|
||||
form)
|
||||
block)]
|
||||
@ids))
|
||||
|
||||
(defn get-block-refs-with-children
|
||||
[block]
|
||||
(->>
|
||||
|
||||
Reference in New Issue
Block a user