mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 09:46:10 +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/11959
This commit is contained in:
parent
74c6b9ba00
commit
9cc334698b
4 changed files with 23 additions and 6 deletions
|
|
@ -268,7 +268,7 @@ func recreateTree(tree *parse.Tree, absPath string) {
|
|||
treenode.RemoveBlockTreesByPathPrefix(strings.TrimSuffix(tree.Path, ".sy"))
|
||||
treenode.RemoveBlockTreesByRootID(tree.ID)
|
||||
|
||||
resetTree(tree, "")
|
||||
resetTree(tree, "", true)
|
||||
if err := filesys.WriteTree(tree); nil != err {
|
||||
logging.LogWarnf("write tree [%s] failed: %s", tree.Path, err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue