From 10cba1dc98c314b43fd30b7ab5d3d768f53e3ad7 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Thu, 7 Sep 2023 18:06:10 +0800 Subject: [PATCH] :art: Remove av block also remove node attr https://github.com/siyuan-note/siyuan/issues/9091#issuecomment-1709824006 --- kernel/model/attribute_view.go | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 11d50a31e..f5f46ca12 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -512,6 +512,7 @@ func (tx *Transaction) removeAttributeViewBlock(operation *Operation) (err error if !gulu.Str.Contains(values.BlockID, operation.SrcIDs) { tmp = append(tmp, keyValues.Values[i]) } else { + // Remove av block also remove node attr https://github.com/siyuan-note/siyuan/issues/9091#issuecomment-1709824006 if bt := treenode.GetBlockTree(values.BlockID); nil != bt { tree := trees[bt.RootID] if nil == tree {