This commit is contained in:
Daniel 2025-07-28 23:39:00 +08:00
parent 155b2de260
commit 396450a2ec
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 5 additions and 1 deletions

View file

@ -4936,8 +4936,11 @@ func setAttributeViewColumnOptionDesc(operation *Operation) (err error) {
} }
func getAttrViewViewByBlockID(attrView *av.AttributeView, blockID string) (ret *av.View, err error) { func getAttrViewViewByBlockID(attrView *av.AttributeView, blockID string) (ret *av.View, err error) {
node, _, _ := getNodeByBlockID(nil, blockID)
var viewID string var viewID string
var node *ast.Node
if "" != blockID {
node, _, _ = getNodeByBlockID(nil, blockID)
}
if nil != node { if nil != node {
viewID = node.IALAttr(av.NodeAttrView) viewID = node.IALAttr(av.NodeAttrView)
} }

View file

@ -1006,6 +1006,7 @@ func syncDelete2AttributeView(node *ast.Node) (changedAvIDs []string) {
} }
if changedAv { if changedAv {
regenAttrViewViewGroups(attrView, "force")
av.SaveAttributeView(attrView) av.SaveAttributeView(attrView)
changedAvIDs = append(changedAvIDs, avID) changedAvIDs = append(changedAvIDs, avID)
} }