mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 10:26:35 +00:00
enhance: frontend consistently uses :db/ident
for fetching built-in properties instead of :block/name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user