mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Quiet warnings about keys in Activity component
This commit is contained in:
parent
1d9be73aed
commit
5dc6cd220d
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ var Activity = React.createClass({
|
|||
title={formatMessage(defaultMessages.whatsHappening)}>
|
||||
|
||||
{this.props.items && this.props.items.length > 0 ? [
|
||||
<ul>
|
||||
<ul key="activity-ul">
|
||||
{this.props.items.map(function (item) {
|
||||
if (item.message.replace(/\s/g, '')) {
|
||||
var actorProfileUrl = '/users/' + item.actor.username + '/';
|
||||
|
@ -60,7 +60,7 @@ var Activity = React.createClass({
|
|||
})}
|
||||
</ul>
|
||||
] : [
|
||||
<div className="empty">
|
||||
<div className="empty" key="activity-empty">
|
||||
<h4>
|
||||
<FormattedMessage
|
||||
id="activity.seeUpdates"
|
||||
|
|
Loading…
Reference in a new issue