From 8ad17328963f772da192103206011877809e6f0d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 7 Jul 2023 15:55:01 +0800 Subject: [PATCH] :art: Block data sync to Attribute View https://github.com/siyuan-note/siyuan/issues/8696 --- kernel/model/transaction.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index 4ce788690..aef447dbd 100644 --- a/kernel/model/transaction.go +++ b/kernel/model/transaction.go @@ -1222,11 +1222,7 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m if changedAv { av.SaveAttributeView(attrView) - evt := util.NewCmdResult("refreshAttributeView", 0, util.PushModeBroadcast) - evt.Data = map[string]interface{}{ - "id": avID, - } - util.PushEvent(evt) + util.BroadcastByType("protyle", "refreshAttributeView", 0, "", map[string]interface{}{"id": avID}) } } }