Skip to content

Commit 2d0a8f2

Browse files
author
cloudwebrtc
committed
Fixed react errors.
1 parent d248f89 commit 2d0a8f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ class App extends Component {
192192
if(peer.id === this.state.self_id)
193193
return null;
194194
return (
195-
<div>
196-
<ListItem button>
195+
<div key={peer.id}>
196+
<ListItem button >
197197
<ListItemText primary={peer.name + ' [' + peer.user_agent + ']'} secondary={'id: ' + peer.id} />
198198
<IconButton color="primary" onClick={() => this.handleInvitePeer(peer.id, 'audio')} className={classes.button} aria-label="Make a voice call.">
199199
<CallIcon />

0 commit comments

Comments
 (0)