console error fix due to duplicate keys

This commit is contained in:
Anirban Kar 2024-12-10 22:57:06 +05:30
parent 55630442f2
commit 7d84a61801

View File

@ -121,8 +121,8 @@ export const ModelSelector = ({
>
{[...modelList]
.filter((e) => e.provider == provider?.name && e.name)
.map((modelOption) => (
<option key={modelOption.name} value={modelOption.name}>
.map((modelOption, index) => (
<option key={index} value={modelOption.name}>
{modelOption.label}
</option>
))}