mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: empty content check if inserting with replace-empty-target?
This commit is contained in:
@@ -448,7 +448,8 @@
|
||||
sibling? (if (page-block? target-block') false sibling?)
|
||||
move? (contains? #{:move-blocks :move-blocks-up-down :indent-outdent-blocks} outliner-op)
|
||||
keep-uuid? (if move? true keep-uuid?)
|
||||
replace-empty-target? (if (some? replace-empty-target?)
|
||||
replace-empty-target? (if (and (some? replace-empty-target?)
|
||||
(string/blank? (:block/content target-block')))
|
||||
replace-empty-target?
|
||||
(and sibling?
|
||||
(string/blank? (:block/content target-block'))
|
||||
|
||||
Reference in New Issue
Block a user