refactor: rename unconventional function name

pull/9269/head
charlie 2023-05-01 10:33:05 +08:00
parent f727f6fc8e
commit a199769f99
1 changed files with 2 additions and 2 deletions

View File

@ -410,7 +410,7 @@
last
rest))))
(defn blocks-with-?ordered-list-props
(defn blocks-with-ordered-list-props
[blocks target-block sibling?]
(let [target-block (if sibling? target-block (some-> target-block :db/id db/pull block tree/-get-down :data))]
(letfn [(list-type-fn [b] (some-> b :block/properties :logseq.order-list-type))]
@ -535,7 +535,7 @@
(> (count blocks) 1)
(not move?)))
blocks' (blocks-with-level blocks)
blocks' (blocks-with-?ordered-list-props blocks' target-block sibling?)
blocks' (blocks-with-ordered-list-props blocks' target-block sibling?)
blocks' (if (= outliner-op :paste)
(fix-top-level-blocks blocks')
blocks')