mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10: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,7 +173,9 @@ func getAttrViewAddingBlockDefaultValues(attrView *av.AttributeView, view, group
|
||||||
|
|
||||||
if nil != newValue {
|
if nil != newValue {
|
||||||
if !av.MSelectExistOption(newValue.MSelect, groupView.GetGroupValue()) {
|
if !av.MSelectExistOption(newValue.MSelect, groupView.GetGroupValue()) {
|
||||||
newValue.MSelect = append(newValue.MSelect, &av.ValueSelect{Content: opt.Name, Color: opt.Color})
|
if 1 > len(newValue.MSelect) || av.KeyTypeMSelect == groupKey.Type {
|
||||||
|
newValue.MSelect = append(newValue.MSelect, &av.ValueSelect{Content: opt.Name, Color: opt.Color})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
newValue = av.GetAttributeViewDefaultValue(ast.NewNodeID(), groupKey.ID, addingItemID, groupKey.Type)
|
newValue = av.GetAttributeViewDefaultValue(ast.NewNodeID(), groupKey.ID, addingItemID, groupKey.Type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue