mirror of https://github.com/waku-org/js-waku.git
Add key to list items
This commit is contained in:
parent
c6f73199cb
commit
f05e3a6bb3
|
@ -46,7 +46,11 @@ export function SendMessage(props: Props) {
|
|||
};
|
||||
|
||||
const items = Array.from(props.recipients.keys()).map((recipient) => {
|
||||
return <MenuItem value={recipient}>{recipient}</MenuItem>;
|
||||
return (
|
||||
<MenuItem key={recipient} value={recipient}>
|
||||
{recipient}
|
||||
</MenuItem>
|
||||
);
|
||||
});
|
||||
|
||||
const keyDownHandler = async (event: KeyboardEvent<HTMLInputElement>) => {
|
||||
|
|
Loading…
Reference in New Issue