This commit is contained in:
Daniel 2023-09-07 18:04:43 +08:00
parent 544ae88e87
commit 02776afc87
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -524,10 +524,10 @@ func (tx *Transaction) removeAttributeViewBlock(operation *Operation) (err error
attrs := parse.IAL2Map(node.KramdownIAL)
if ast.NodeDocument == node.Type {
delete(attrs, "custom-hidden")
node.RemoveIALAttr("custom-hidden")
}
delete(attrs, NodeAttrNamePrefixAvKey+operation.AvID+"-"+values.KeyID)
node.RemoveIALAttr(NodeAttrNamePrefixAvKey + operation.AvID + "-" + values.KeyID)
if err = setNodeAttrsWithTx(tx, node, tree, attrs); nil != err {
return
}