fix(reference): recursive display children

Fixed: https://github.com/logseq/logseq/issues/506
pull/645/head
defclass 2020-11-04 17:37:54 +08:00 committed by Tienson Qin
parent 8da5b36ab9
commit 606b545d6c
2 changed files with 2 additions and 1 deletions

View File

@ -1292,7 +1292,7 @@
(rum/with-key (block-container (assoc config :block/uuid (:block/uuid child)) child)
(:block/uuid child)))))])
(when (and ref? (not ref-child?))
(when ref?
(let [children (-> (db/get-block-children-unsafe repo uuid)
db/sort-by-pos)]
(when (seq children)

View File

@ -61,6 +61,7 @@
{:id encoded-page-name
:start-level 2
:ref? true
:ref-child? false
:group-by-page? true
:editor-box editor/box}
{})]