Bläddra i källkod

Hide filter property again

samfundev 4 år sedan
förälder
incheckning
5ceb7b43b1
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/main/frontend/components/block.cljs

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

@@ -1043,7 +1043,7 @@
           only-title? (and (= 1 (count ast))
           only-title? (and (= 1 (count ast))
                            (= "Properties" (ffirst ast))
                            (= "Properties" (ffirst ast))
                            (let [m (second (first ast))]
                            (let [m (second (first ast))]
-                             (= (keys m) [:title])))
+                             (every? #(util/in? % [:title :filter]) (keys m))))
           block-cp [:div {:class (if only-title?
           block-cp [:div {:class (if only-title?
                                    (util/hiccup->class "pre-block.opacity-50")
                                    (util/hiccup->class "pre-block.opacity-50")
                                    (util/hiccup->class "pre-block.bg-base-2.p-2.rounded"))}
                                    (util/hiccup->class "pre-block.bg-base-2.p-2.rounded"))}