🎨 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

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