Browse Source

fix: tests

Tienson Qin 9 tháng trước cách đây
mục cha
commit
f28c698909
1 tập tin đã thay đổi với 6 bổ sung5 xóa
  1. 6 5
      deps/db/src/logseq/db/frontend/entity_util.cljs

+ 6 - 5
deps/db/src/logseq/db/frontend/entity_util.cljs

@@ -73,11 +73,12 @@
 
 (defn hidden?
   [page]
-  (when page
-    (if (string? page)
-      (string/starts-with? page "$$$")
-      (when (or (map? page) (de/entity? page))
-        (:property/hide? page)))))
+  (boolean
+   (when page
+     (if (string? page)
+       (string/starts-with? page "$$$")
+       (when (or (map? page) (de/entity? page))
+         (:property/hide? page))))))
 
 (defn object?
   [node]