From b8046c9ad7c13a1e70bbb83bbc8b8d077e68c26d Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 22 Nov 2022 00:11:38 +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/block.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 95ad07584..0d805e647 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -262,9 +262,8 @@ func GetHeadingChildrenIDs(id string) (ret []string) { return } - nodes := append([]*ast.Node{}, heading) children := treenode.HeadingChildren(heading) - nodes = append(nodes, children...) + nodes := append([]*ast.Node{}, children...) for _, n := range nodes { ret = append(ret, n.ID) }