We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d49357 commit 10846fdCopy full SHA for 10846fd
1 file changed
deps/outliner/src/logseq/outliner/core.cljs
@@ -674,7 +674,7 @@
674
:id->new-uuid id->new-uuid}))
675
676
(defn- get-target-block
677
- [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?]}]
678
(when-let [block (if (:db/id target-block)
679
(d/entity db (:db/id target-block))
680
(when (:block/uuid target-block)
@@ -707,7 +707,7 @@
707
top?
708
[block false]
709
710
- bottom?
+ (and bottom? (not replace-empty-target?))
711
(if-let [last-child (last (ldb/sort-by-order (:block/_parent block)))]
712
[last-child true]
713
[block false])
0 commit comments