Skip to content

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

:art: Improve av grouping https://github.com/siyuan-note/siyuan/issues/15443

Daniel11f7ad6a704c
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index d274fabfb1..133536db70 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1863,7 +1863,7 @@ func genAttrViewViewGroups(view *av.View, attrView *av.AttributeView) {
v.Name = "" // 分组视图的名称在渲染时才填充
v.GroupVal = &av.Value{Type: av.KeyTypeText, Text: &av.ValueText{Content: groupValue}}
if av.KeyTypeSelect == groupKey.Type || av.KeyTypeMSelect == groupKey.Type {
- if opt := groupKey.GetOption(groupVal); nil != opt {
+ if opt := groupKey.GetOption(groupValue); nil != opt {
v.GroupVal.Text = nil
v.GroupVal.Type = av.KeyTypeSelect
v.GroupVal.MSelect = []*av.ValueSelect{{Content: opt.Name, Color: opt.Color}}