Skip to content

Commit 711976f

Browse files
author
Rankin Zheng
committed
Add key prop to Menu.Item in InputMessage component
1 parent 213a7db commit 711976f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/components/InputMessage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ const InputMessage = observer((props: any) => {
456456
<Menu.Dropdown>
457457
{modelMenus.map((modelName) => {
458458
return (
459-
<Menu.Item onClick={() => changeModel(modelName)}>
459+
<Menu.Item key={modelName} onClick={() => changeModel(modelName)}>
460460
{getModelShowName(modelName)}
461461
</Menu.Item>
462462
);

0 commit comments

Comments
 (0)