fix: move top block's children to the bottom

pull/10438/head
Tienson Qin 2023-08-24 15:40:05 +08:00
parent 1f6c950bf4
commit 620038ea0f
1 changed files with 3 additions and 1 deletions

View File

@ -963,7 +963,9 @@
(:block/left (get-first-block-original)))
sibling? (= (:db/id (:block/parent left-left))
(:db/id first-block-parent))]
(when left-left
(when (and left-left
(not= (:db/id (:block/page first-block-parent))
(:db/id left-left)))
(move-blocks top-level-blocks left-left (merge opts {:sibling? sibling?
:up? up?}))))