Skip to content

Commit

Permalink
Merge pull request #3072 from storybooks/event-key-warning
Browse files Browse the repository at this point in the history
Events addon: fix React keys warning
  • Loading branch information
Hypnosphi authored Feb 27, 2018
2 parents 03cce7a + 70dc583 commit 6758750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/events/src/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class Events extends Component {
const { events } = this.state;
return (
<div style={styles.wrapper}>
{events.map(event => <Event key={event.id} {...event} onEmit={this.onEmit} />)}
{events.map(event => <Event key={event.name} {...event} onEmit={this.onEmit} />)}
</div>
);
}
Expand Down

0 comments on commit 6758750

Please sign in to comment.