🎨 Improve av

This commit is contained in:
Daniel 2025-08-23 22:15:31 +08:00
parent 161dd7eb2a
commit ef5236e0b1
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 24 additions and 32 deletions

View file

@ -1008,7 +1008,7 @@ func syncDelete2AttributeView(node *ast.Node) (changedAvIDs []string) {
}
if changedAv {
regenAttrViewGroups(attrView, "force")
regenAttrViewGroups(attrView)
av.SaveAttributeView(attrView)
changedAvIDs = append(changedAvIDs, avID)
}
@ -1569,7 +1569,7 @@ func upsertAvBlockRel(node *ast.Node) {
for _, avID := range affectedAvIDs {
attrView, _ := av.ParseAttributeView(avID)
if nil != attrView {
regenAttrViewGroups(attrView, "force")
regenAttrViewGroups(attrView)
av.SaveAttributeView(attrView)
}