fix: asset wrong order

This commit is contained in:
Tienson Qin
2026-01-01 20:35:44 +08:00
parent 7d493575df
commit 10846fdaa3

View File

@@ -674,7 +674,7 @@
:id->new-uuid id->new-uuid}))
(defn- get-target-block
[db blocks target-block {:keys [outliner-op bottom? top? indent? sibling? up?]}]
[db blocks target-block {:keys [outliner-op bottom? top? indent? sibling? up? replace-empty-target?]}]
(when-let [block (if (:db/id target-block)
(d/entity db (:db/id target-block))
(when (:block/uuid target-block)
@@ -707,7 +707,7 @@
top?
[block false]
bottom?
(and bottom? (not replace-empty-target?))
(if-let [last-child (last (ldb/sort-by-order (:block/_parent block)))]
[last-child true]
[block false])