Browse Source

fix: icon wasn't shown initially

Tienson Qin 1 year ago
parent
commit
aebb39a98e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      deps/db/src/logseq/db/sqlite/common_db.cljs

+ 5 - 5
deps/db/src/logseq/db/sqlite/common_db.cljs

@@ -118,11 +118,11 @@
 (defn get-structured-blocks
   [db]
   (let [special-pages (map #(d/pull db '[*] [:block/name %]) #{"tags"})
-        closed-values (->> (d/datoms db :avet :block/type)
-                           (keep (fn [e]
-                                   (when (contains? #{"closed value"} (:v e))
-                                     (d/pull db '[*] (:e e))))))]
-    (concat special-pages closed-values)))
+        structured-blocks (->> (d/datoms db :avet :block/type)
+                               (keep (fn [e]
+                                       (when (contains? #{"closed value" "property" "class"} (:v e))
+                                         (d/pull db '[*] (:e e))))))]
+    (concat special-pages structured-blocks)))
 
 (defn get-favorites
   "Favorites page and its blocks"