Skip to content

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

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

Daniel4f073c85cdfa
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index f0b95ca248..2f6af27a06 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -562,9 +562,10 @@ func SetAttributeViewGroup(avID, blockID string, group *av.ViewGroup) (err error
// 首次设置分组时,如果分组字段是单选或多选类型,则将分组方式改为按选项排序 https://github.com/siyuan-note/siyuan/issues/15534
view.Group.Order = av.GroupOrderSelectOption
sortGroupsBySelectOption(view, groupKey)
- for i, g := range view.Groups {
- g.GroupSort = i
- }
+ }
+
+ for i, g := range view.Groups {
+ g.GroupSort = i
}
}