chore: remove util/in?

This commit is contained in:
Tienson Qin
2021-03-05 12:14:46 +08:00
parent 041ef05f70
commit 093faa1687
4 changed files with 6 additions and 13 deletions

View File

@@ -145,8 +145,7 @@
(when-let [block (db/entity repo [:block/uuid block-id])]
(let [properties (:page/properties (:block/page block))
property-names (keys properties)]
(and (every? #(util/in? % '(:title :filter)) property-names)
(= 1 (count properties))
(and (every? #(contains? #{:title :filters} %) property-names)
(let [ast (mldoc/->edn (:block/content block) (mldoc/default-config (:block/format block)))]
(or
(empty? (rest ast))