From 76c60b59c96bf9a7ee30ccfc80bfdcbd003514c5 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Thu, 17 Apr 2025 09:39:20 -0400 Subject: [PATCH] fix: backspace on block with property deletes prev children Fixes https://github.com/logseq/db-test/issues/249 --- src/main/frontend/handler/editor.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/handler/editor.cljs b/src/main/frontend/handler/editor.cljs index 90aaf3728b..b1542c1bf2 100644 --- a/src/main/frontend/handler/editor.cljs +++ b/src/main/frontend/handler/editor.cljs @@ -818,7 +818,7 @@ concat-prev-block? (let [children (:block/_parent (db/entity (:db/id block))) db-based? (config/db-based-graph? repo) - prev-block-is-not-parent? (not= (:block/uuid (:block/parent block)) (:block/uuid prev-block)) + prev-block-is-not-parent? (empty? (:block/_parent prev-block)) delete-prev-block? (and db-based? prev-block-is-not-parent? (empty? (:block/tags block))