This commit is contained in:
Daniel 2025-08-22 00:34:41 +08:00
parent c2ac34942b
commit 4f073c85cd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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