Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/16296

Daniel80e9bee8bdea
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 99719809f7..4fd22201be 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -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