mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15591
This commit is contained in:
parent
93580cc27f
commit
30bde33dd2
1 changed files with 3 additions and 1 deletions
|
|
@ -173,8 +173,10 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
|
|||
|
||||
if nil != newValue {
|
||||
if !av.MSelectExistOption(newValue.MSelect, groupView.GetGroupValue()) {
|
||||
if 1 > len(newValue.MSelect) || av.KeyTypeMSelect == groupKey.Type {
|
||||
newValue.MSelect = append(newValue.MSelect, &av.ValueSelect{Content: opt.Name, Color: opt.Color})
|
||||
}
|
||||
}
|
||||
} else {
|
||||
newValue = av.GetAttributeViewDefaultValue(ast.NewNodeID(), groupKey.ID, addingItemID, groupKey.Type)
|
||||
newValue.MSelect = append(newValue.MSelect, &av.ValueSelect{Content: opt.Name, Color: opt.Color})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue