mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +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)
|
newValue = av.GetAttributeViewDefaultValue(ast.NewNodeID(), groupKey.ID, addingItemID, groupKey.Type, false)
|
||||||
if av.KeyTypeText == groupView.GroupVal.Type {
|
if av.KeyTypeText == groupView.GroupVal.Type {
|
||||||
content := groupView.GroupVal.Text.Content
|
content := groupView.GroupVal.Text.Content
|
||||||
|
if groupValueDefault == content {
|
||||||
|
content = ""
|
||||||
|
}
|
||||||
|
|
||||||
switch newValue.Type {
|
switch newValue.Type {
|
||||||
case av.KeyTypeBlock:
|
case av.KeyTypeBlock:
|
||||||
newValue.Block.Content = content
|
newValue.Block.Content = content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue