From 05661f4983b93e3233c36eb917d59c19cf652683 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 5 Oct 2022 11:56:54 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=87=E6=A1=A3=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=A2=9E=E5=8A=A0=E8=B6=85=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E6=95=B0=E3=80=81=E5=9B=BE=E7=89=87=E6=95=B0=E3=80=81=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E6=95=B0=E5=92=8C=E5=A4=A7=E5=B0=8F=20https://github.?= =?UTF-8?q?com/siyuan-note/siyuan/issues/6037?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/file.go b/kernel/model/file.go index 8f36679ec..aa90e7c40 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -431,6 +431,8 @@ func BlocksWordCount(ids []string) (ret *util.BlockStatResult) { } func StatTree(id string) (ret *util.BlockStatResult) { + WaitForWritingFiles() + tree, _ := loadTreeByBlockID(id) if nil == tree { return