소스 검색

fix: unbound vars caught by lint

also updated property type for previous commit
Gabriel Horner 1 년 전
부모
커밋
dbf263ed7c
2개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 2
      deps/db/src/logseq/db/frontend/property.cljs
  2. 2 2
      deps/db/src/logseq/db/frontend/rules.cljc

+ 1 - 2
deps/db/src/logseq/db/frontend/property.cljs

@@ -64,8 +64,7 @@
    ;; query-properties is a coll of property uuids and keywords where keywords are special frontend keywords
    :logseq.property/query-properties {:schema {:type :coll
                                                :hide? true}}
-   ;; query-sort-by is either a property uuid or a keyword where keyword is a special frontend keyword
-   :logseq.property/query-sort-by {:schema {:type :any
+   :logseq.property/query-sort-by {:schema {:type :keyword
                                             :hide? true}}
    :logseq.property/query-sort-desc {:schema {:type :checkbox
                                               :hide? true}}

+ 2 - 2
deps/db/src/logseq/db/frontend/rules.cljc

@@ -164,7 +164,7 @@
     :has-page-property
     '[(has-page-property ?p ?prop)
       [?p :block/name]
-      [?p ?prop ?v]
+      [?p ?prop _]
       [?prop-e :db/ident ?prop]
       [?prop-e :block/type "property"]]
 
@@ -179,7 +179,7 @@
 
     :has-property
     '[(has-property ?b ?prop)
-      [?b ?prop ?v]
+      [?b ?prop _]
       [(missing? $ ?b :block/name)]
       [?prop-e :db/ident ?prop]
       [?prop-e :block/type "property"]]