mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix(ui): incorrect order list number for the root block
This commit is contained in:
@@ -308,7 +308,8 @@
|
||||
(let [idx (if prev-block
|
||||
(count (order-sibling-list block)) 1)
|
||||
order-parents-count (count (order-parent-list block))]
|
||||
(if (odd? order-parents-count)
|
||||
(if (or (zero? order-parents-count)
|
||||
(odd? order-parents-count))
|
||||
idx (nth (seq "abcdefghijklmnopqrstuvwxyz") (mod (dec idx) 26)))))))
|
||||
|
||||
(defn attach-order-list-state
|
||||
|
||||
Reference in New Issue
Block a user