refactor: force outliner.tree/-del to delete all children

Except the children have been moved.
This commit is contained in:
Tienson Qin
2024-04-17 17:46:51 +08:00
parent ffb4bd5a8f
commit 2a7e6accb0
13 changed files with 158 additions and 227 deletions

View File

@@ -298,7 +298,7 @@ when undo this op, this original entity-map will be transacted back into db")
(outliner-core/delete-blocks! repo conn
(common-config/get-date-formatter (worker-state/get-config repo))
block-entities
{:children? true})))
{})))
(when (every? nil? (map #(d/entity @conn [:block/uuid %]) block-uuids))
[:push-undo-redo {}]))))