fix: delete at end concats wrong blocks

related to https://github.com/logseq/db-test/issues/347
This commit is contained in:
Tienson Qin
2025-06-23 23:04:03 +08:00
parent b4ed4ec55c
commit 19513d3ecb
3 changed files with 16 additions and 1 deletions

View File

@@ -2762,7 +2762,10 @@
(let [repo (state/get-current-repo)
editor-state (assoc (get-state)
:block-id (:block/uuid next-block)
:value (:block/title next-block))]
:value (:block/title next-block)
:block-container (util/get-next-block-non-collapsed
(util/rec-get-node (state/get-input) "ls-block")
{:exclude-property? true}))]
(delete-block-inner! repo editor-state)))))
(defn keydown-delete-handler