Browse Source

fix: missing content for tags

Tienson Qin 1 year ago
parent
commit
da30c6886b
2 changed files with 2 additions and 3 deletions
  1. 1 1
      src/main/frontend/components/class.cljs
  2. 1 2
      src/main/frontend/db/model.cljs

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

@@ -23,7 +23,7 @@
 (rum/defc class-children
   [class]
   (when (seq (:logseq.property/_parent class))
-    (let [children-pages (model/get-structured-children (state/get-current-repo) (:db/id class))
+    (let [children-pages (set (model/get-structured-children (state/get-current-repo) (:db/id class)))
           ;; Expand children if there are about a pageful of total blocks to display
           default-collapsed? (> (count children-pages) 30)]
       [:div.mt-4

+ 1 - 2
src/main/frontend/db/model.cljs

@@ -789,8 +789,7 @@ independent of format as format specific heading characters are stripped"
         (conn/get-db repo)
         eid
         (:parent rules/rules))
-   (remove #{eid})
-   set))
+   (remove #{eid})))
 
 (defn get-class-objects
   [repo class-id]