fix(dashboard): include access-group models in team member Allowed Models dropdown

This commit is contained in:
Aniket Kumar 2026-09-23 17:34:19 +05:30
parent 860bc7811d
commit b2fd9dccd1

View file

@ -2393,7 +2393,9 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
</span>
),
type: "multi-select" as const,
options: (info.models || []).map((m: string) => ({ label: m, value: m })),
options: [...new Set([...(info.models || []), ...(info.access_group_models || [])])].map(
(m: string) => ({ label: m, value: m }),
),
placeholder: "Leave empty to inherit all team models",
},
],