1
0
Эх сурвалжийг харах

fix(reference): recursive display children

Fixed: https://github.com/logseq/logseq/issues/506
defclass 5 жил өмнө
parent
commit
606b545d6c

+ 1 - 1
src/main/frontend/components/block.cljs

@@ -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)

+ 1 - 0
src/main/frontend/components/reference.cljs

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