mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 10:20:15 +01:00
fix: model menu key issue
This commit is contained in:
parent
9bc85ea83d
commit
8e513d83a5
6 changed files with 73 additions and 57 deletions
|
|
@ -4,9 +4,10 @@ import ModelItem from './ModelItem';
|
|||
export default function MenuItems({ models, onSelect }) {
|
||||
return (
|
||||
<>
|
||||
{models.map((modelItem, i) => (
|
||||
{models.map((modelItem) => (
|
||||
<ModelItem
|
||||
key={i}
|
||||
key={modelItem._id}
|
||||
id={modelItem._id}
|
||||
modelName={modelItem.name}
|
||||
value={modelItem.value}
|
||||
onSelect={onSelect}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue