Skip to content

Commit 10846fd

Browse files
committed
fix: asset wrong order
1 parent 7d49357 commit 10846fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

deps/outliner/src/logseq/outliner/core.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@
674674
:id->new-uuid id->new-uuid}))
675675

676676
(defn- get-target-block
677-
[db blocks target-block {:keys [outliner-op bottom? top? indent? sibling? up?]}]
677+
[db blocks target-block {:keys [outliner-op bottom? top? indent? sibling? up? replace-empty-target?]}]
678678
(when-let [block (if (:db/id target-block)
679679
(d/entity db (:db/id target-block))
680680
(when (:block/uuid target-block)
@@ -707,7 +707,7 @@
707707
top?
708708
[block false]
709709

710-
bottom?
710+
(and bottom? (not replace-empty-target?))
711711
(if-let [last-child (last (ldb/sort-by-order (:block/_parent block)))]
712712
[last-child true]
713713
[block false])

0 commit comments

Comments
 (0)