fix: when searching for text which is in a collapsed block, it is not opened

close #4017
This commit is contained in:
Tienson Qin
2022-01-29 21:19:02 +08:00
parent c370a961aa
commit d1cc77ae0c
3 changed files with 2 additions and 14 deletions

View File

@@ -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]
(->>