diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 099c67ba79f..afe6667ced4 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -1296,8 +1296,16 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID, cellID string, bindBlockAv(tx, avID, rowID) } - if nil != val.Block { - val.Block.Updated = time.Now().UnixMilli() + for _, kv := range attrView.KeyValues { + if av.KeyTypeBlock == kv.Key.Type { + for _, v := range kv.Values { + if rowID == v.Block.ID { + v.Block.Updated = time.Now().UnixMilli() + break + } + } + break + } } if err = av.SaveAttributeView(attrView); nil != err {