mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 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:
parent
0d5af87da2
commit
3cbb6138ed
2 changed files with 33 additions and 28 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue