mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 13:08:06 +01:00
🎨 Remove av block also remove node attr https://github.com/siyuan-note/siyuan/issues/9091#issuecomment-1709824006
This commit is contained in:
parent
544ae88e87
commit
02776afc87
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue