mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
specify unique key to make react happy
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a7f5059aca
commit
a899871d52
@ -70,7 +70,7 @@ export default withMatrixClient(React.createClass({
|
||||
if (this.state.groups) {
|
||||
const groupNodes = [];
|
||||
this.state.groups.forEach((g) => {
|
||||
groupNodes.push(<GroupTile groupId={g} />);
|
||||
groupNodes.push(<GroupTile key={g} groupId={g} />);
|
||||
});
|
||||
contentHeader = groupNodes.length > 0 ? <h3>{ _t('Your Communities') }</h3> : <div />;
|
||||
content = groupNodes.length > 0 ?
|
||||
|
Loading…
Reference in New Issue
Block a user