mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -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)}>
|
title={formatMessage(defaultMessages.whatsHappening)}>
|
||||||
|
|
||||||
{this.props.items && this.props.items.length > 0 ? [
|
{this.props.items && this.props.items.length > 0 ? [
|
||||||
<ul>
|
<ul key="activity-ul">
|
||||||
{this.props.items.map(function (item) {
|
{this.props.items.map(function (item) {
|
||||||
if (item.message.replace(/\s/g, '')) {
|
if (item.message.replace(/\s/g, '')) {
|
||||||
var actorProfileUrl = '/users/' + item.actor.username + '/';
|
var actorProfileUrl = '/users/' + item.actor.username + '/';
|
||||||
|
@ -60,7 +60,7 @@ var Activity = React.createClass({
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
] : [
|
] : [
|
||||||
<div className="empty">
|
<div className="empty" key="activity-empty">
|
||||||
<h4>
|
<h4>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id="activity.seeUpdates"
|
id="activity.seeUpdates"
|
||||||
|
|
Loading…
Reference in a new issue