瀏覽代碼

fix(reference): recursive display children

Fixed: https://github.com/logseq/logseq/issues/506
defclass 5 年之前
父節點
當前提交
606b545d6c
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      src/main/frontend/components/block.cljs
  2. 1 0
      src/main/frontend/components/reference.cljs

+ 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}
                                              {})]