From 91a9b27789ebe4a205f0a513e61651bf7d9b14ab Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 23 Aug 2025 18:48:54 +0800 Subject: [PATCH] :art: Improve av https://github.com/siyuan-note/siyuan/issues/15528 --- kernel/model/attribute_view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 3087f4335..963cc0ad5 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -3040,7 +3040,7 @@ func addAttributeViewBlock(now int64, avID, dbBlockID, groupID, previousItemID, // 检查是否重复添加相同的块 blockValues := attrView.GetBlockKeyValues() for _, blockValue := range blockValues.Values { - if blockValue.Block.ID == addingBoundBlockID { + if "" != addingBoundBlockID && blockValue.Block.ID == addingBoundBlockID { if !isDetached { // 重复绑定一下,比如剪切数据库块、取消绑定块后再次添加的场景需要 bindBlockAv0(tx, avID, node, tree)