fix: wrong argument

This commit is contained in:
Tienson Qin
2024-01-09 14:09:12 +08:00
parent dd3a4b122c
commit 879ae09fa2
2 changed files with 1 additions and 2 deletions

View File

@@ -115,7 +115,7 @@
(let [properties (:block/properties block)
type (pu/lookup properties :logseq.order-list-type)]
(= type order-list-type)))
prev-block-fn #(some->> (:db/id %) (db-model/get-prev-sibling (state/get-current-repo)))
prev-block-fn #(some->> (:db/id %) (db-model/get-prev-sibling (db/get-db)))
prev-block (prev-block-fn block)]
(letfn [(page-fn? [b] (some-> b :block/name some?))
(order-sibling-list [b]