From 168d673a0c9079bceba3a44e5a34869217764bc9 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 22 Nov 2022 00:41:42 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=A7=BB=E5=8A=A8=E6=8A=98=E5=8F=A0?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=90=8E=E8=87=AA=E5=8A=A8=E5=B1=95=E5=BC=80?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/6673?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/heading.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/heading.go b/kernel/model/heading.go index 80e95b92f..79f507578 100644 --- a/kernel/model/heading.go +++ b/kernel/model/heading.go @@ -34,7 +34,7 @@ import ( func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) { headingID := operation.ID - tree, err := loadTreeByBlockID(headingID) + tree, err := tx.loadTree(headingID) if nil != err { return &TxErr{code: TxErrCodeBlockNotFound, id: headingID} } @@ -69,7 +69,7 @@ func (tx *Transaction) doFoldHeading(operation *Operation) (ret *TxErr) { func (tx *Transaction) doUnfoldHeading(operation *Operation) (ret *TxErr) { headingID := operation.ID - tree, err := loadTreeByBlockID(headingID) + tree, err := tx.loadTree(headingID) if nil != err { return &TxErr{code: TxErrCodeBlockNotFound, id: headingID} }