This commit is contained in:
Daniel 2025-08-23 18:48:54 +08:00
parent 9eec8510b7
commit 91a9b27789
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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)