From 8945626fc01b6f21ed8330696b29cac9ef3638a2 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 31 Aug 2022 12:52:30 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=94=AF=E6=8C=81=E5=8F=AA=E8=AF=BB=E5=8F=AF?= =?UTF-8?q?=E8=A7=86=E5=8C=96=E9=A2=84=E8=A7=88=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/5735?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/file.go b/kernel/model/file.go index 174895a94..55785b479 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -1198,7 +1198,6 @@ func RemoveDoc(boxID, p string) (err error) { return errors.New(fmt.Sprintf(Conf.Language(70), box.Name, absPath, err)) } - indexHistoryDir(filepath.Base(historyDir), NewLute()) copyDocAssetsToDataAssets(boxID, p) rootID := tree.ID @@ -1212,6 +1211,7 @@ func RemoveDoc(boxID, p string) (err error) { return } } + indexHistoryDir(filepath.Base(historyDir), NewLute()) box.removeSort(rootID, p) if err = box.Remove(p); nil != err {