From b3dbcec3ccb76f23cd6559919d5728dc8bde4db2 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 15 Mar 2025 17:05:09 +0800 Subject: [PATCH] :art: Fix tree id https://github.com/siyuan-note/siyuan/issues/14363 --- kernel/filesys/tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/filesys/tree.go b/kernel/filesys/tree.go index 0e293a3eb..346e98f27 100644 --- a/kernel/filesys/tree.go +++ b/kernel/filesys/tree.go @@ -281,10 +281,10 @@ func parseJSON2Tree(boxID, p string, jsonData []byte, luteEngine *lute.Lute) (re if pathID := util.GetTreeID(p); pathID != ret.Root.ID { needFix = true + logging.LogInfof("reset tree id from [%s] to [%s]", ret.Root.ID, pathID) ret.Root.ID = pathID ret.ID = pathID ret.Root.SetIALAttr("id", ret.ID) - logging.LogInfof("reset tree id from [%s] to [%s]", ret.Root.ID, pathID) } if needFix {