diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go index 93f7fcbb68e..3fe2a53b2f4 100644 --- a/kernel/model/attribute_view.go +++ b/kernel/model/attribute_view.go @@ -3147,7 +3147,7 @@ func UpdateAttributeViewCell(tx *Transaction, avID, keyID, rowID string, valueDa if blockText == content { updateStaticText = false } else { - val.Block.Content = blockText + val.Block.Content = content } } diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index 2f4ab611431..86fb533433e 100644 --- a/kernel/model/transaction.go +++ b/kernel/model/transaction.go @@ -1313,10 +1313,17 @@ func upsertAvBlockRel(node *ast.Node) { }) } - affectedAvIDs = gulu.Str.RemoveDuplicatedElem(affectedAvIDs) go func() { time.Sleep(100 * time.Millisecond) sql.FlushQueue() + + affectedAvIDs = gulu.Str.RemoveDuplicatedElem(affectedAvIDs) + var relatedAvIDs []string + for _, avID := range affectedAvIDs { + relatedAvIDs = append(relatedAvIDs, av.GetSrcAvIDs(avID)...) + } + affectedAvIDs = append(affectedAvIDs, relatedAvIDs...) + affectedAvIDs = gulu.Str.RemoveDuplicatedElem(affectedAvIDs) for _, avID := range affectedAvIDs { ReloadAttrView(avID) }