enhance: frontend consistently uses :db/ident

for fetching built-in properties instead of :block/name
This commit is contained in:
Gabriel Horner
2024-03-27 20:35:11 -04:00
parent eecb510ccb
commit 9c5309da47
29 changed files with 101 additions and 96 deletions

View File

@@ -116,7 +116,7 @@
[block order-list-type]
(let [order-block-fn? (fn [block]
(let [properties (:block/properties block)
type (pu/lookup properties :logseq.order-list-type)]
type (pu/lookup properties :logseq.property/order-list-type)]
(= type order-list-type)))
prev-block-fn #(some->> (:db/id %) (db-model/get-prev-sibling (db/get-db)))
prev-block (prev-block-fn block)]
@@ -145,7 +145,7 @@
(defn attach-order-list-state
[config block]
(let [properties (:block/properties block)
type (pu/lookup properties :logseq.order-list-type)
type (pu/lookup properties :logseq.property/order-list-type)
own-order-list-type (some-> type str string/lower-case)
own-order-list-index (some->> own-order-list-type (get-idx-of-order-list-block block))]
(assoc config :own-order-list-type own-order-list-type