🎨 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049

This commit is contained in:
Daniel 2024-12-23 17:30:35 +08:00
parent 077a46ac70
commit a133e7d771
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -3285,7 +3285,7 @@ func updateBlockValueStaticText(tx *Transaction, node *ast.Node, tree *parse.Tre
attrs := parse.IAL2Map(node.KramdownIAL)
attrs[av.NodeAttrViewStaticText+"-"+avID] = text
var err error
if nil != tree {
if nil != tx {
err = setNodeAttrsWithTx(tx, node, tree, attrs)
} else {
err = setNodeAttrs(node, nil, attrs)