From 289c5f1758fbb692b6129c5789e1dc5166723f49 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 10 Oct 2022 22:32:41 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=A0=87=E9=A2=98=E5=9D=97=E6=A0=87?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=94=AF=E6=8C=81=20`=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=8F=8A=E4=B8=8B=E6=96=B9=E5=9D=97`=20?= =?UTF-8?q?=E5=92=8C=20`=E5=89=AA=E5=88=87=E6=A0=87=E9=A2=98=E5=8F=8A?= =?UTF-8?q?=E4=B8=8B=E6=96=B9=E5=9D=97`=20https://github.com/siyuan-note/s?= =?UTF-8?q?iyuan/issues/6135?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 6007b74b8..9a85e6a8e 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -242,7 +242,7 @@ func GetHeadingDeleteTransaction(id string) (transaction *Transaction, err error if nil != n.Parent { op.ParentID = n.Parent.ID } - if nil != n.Parent { + if nil != n.Previous { op.PreviousID = n.Previous.ID } op.Action = "insert"