Ver Fonte

fix: built-in properties visible on all pages

Gabriel Horner há 1 ano atrás
pai
commit
fa3a589c72
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/main/frontend/handler/page.cljs

+ 2 - 1
src/main/frontend/handler/page.cljs

@@ -234,7 +234,8 @@
   [repo]
   (let [graph-specific-hidden?
         (if (config/db-based-graph? repo)
-          (fn [_p] false)
+          (fn [p]
+            (and (contains? (set (:block/type p)) "property") (ldb/built-in? p)))
           (fn [p]
             (gp-db/built-in-pages-names (string/upper-case (:block/name p)))))]
     (->> (db/get-all-pages repo)