create a set for unique options (#12074)

This commit is contained in:
tanjiro 2025-06-28 13:31:05 +09:00 • committed by GitHub
parent 58dda44fda
commit 0ba4dde659
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -441,7 +441,7 @@ const TeamInfoView: React.FC<TeamInfoProps> = ({
<Select.Option key="all-proxy-models" value="all-proxy-models">
All Proxy Models
</Select.Option>
{userModels.map((model, idx) => (
{Array.from(new Set(userModels)).map((model, idx) => (
<Select.Option key={idx} value={model}>
{getModelDisplayName(model)}
</Select.Option>