Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-01 10:01:45 +08:00
parent 0987fe2150
commit 5ebf8b9948
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -817,9 +817,11 @@ func ChangeAttrViewLayout(blockID, avID string, newLayout av.LayoutType) (err er
} }
} }
preferredGroupKey := getKanbanPreferredGroupKey(attrView) if !view.IsGroupView() {
group := &av.ViewGroup{Field: preferredGroupKey.ID} preferredGroupKey := getKanbanPreferredGroupKey(attrView)
setAttributeViewGroup(attrView, view, group) group := &av.ViewGroup{Field: preferredGroupKey.ID}
setAttributeViewGroup(attrView, view, group)
}
} }
blockIDs := treenode.GetMirrorAttrViewBlockIDs(avID) blockIDs := treenode.GetMirrorAttrViewBlockIDs(avID)