Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-09 10:53:45 +08:00
parent 8d6c422af0
commit 80e9bee8bd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -290,6 +290,10 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
newValue = av.GetAttributeViewDefaultValue(ast.NewNodeID(), groupKey.ID, addingItemID, groupKey.Type, false)
if av.KeyTypeText == groupView.GroupVal.Type {
content := groupView.GroupVal.Text.Content
if groupValueDefault == content {
content = ""
}
switch newValue.Type {
case av.KeyTypeBlock:
newValue.Block.Content = content