🎨 The database-bound block is automatically added to the database after being copied as a replica https://github.com/siyuan-note/siyuan/issues/12140

This commit is contained in:
Daniel 2024-08-04 11:24:04 +08:00
parent 0d5af87da2
commit 3cbb6138ed
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 33 additions and 28 deletions

View file

@ -1653,6 +1653,7 @@ func removeDoc(box *Box, p string, luteEngine *lute.Lute) {
allRemoveRootIDs := []string{tree.ID}
allRemoveRootIDs = append(allRemoveRootIDs, removeIDs...)
allRemoveRootIDs = gulu.Str.RemoveDuplicatedElem(allRemoveRootIDs)
for _, rootID := range allRemoveRootIDs {
removeTree, _ := LoadTreeByBlockID(rootID)
if nil == removeTree {