🎨 After invoking kernel API setBlockAttrs then auto refresh dynamic anchor text of block refs Fix https://github.com/siyuan-note/siyuan/issues/8605

This commit is contained in:
Daniel 2023-06-24 17:48:57 +08:00
parent 0f519f62b1
commit bb0bbaf5a0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -138,7 +138,9 @@ func setNodeAttrs(node *ast.Node, tree *parse.Tree, nameValues map[string]string
pushBroadcastAttrTransactions(oldAttrs, node)
go func() {
sql.WaitForWritingDatabase()
if !sql.IsEmptyQueue() {
sql.WaitForWritingDatabase()
}
refreshDynamicRefText(node, tree)
}()
return