mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
8d6c422af0
commit
80e9bee8bd
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue