mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
last tweak
use .map (.., key) instead of tile.title just in case we ever have two tiles with the same title.
This commit is contained in:
parent
a27fea51e6
commit
de9fb22fc8
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ var ThingsToTry = injectIntl(React.createClass({
|
|||
var translatedTiles = [];
|
||||
var translatedTile = {};
|
||||
|
||||
Tiles.map(function (tile) {
|
||||
Tiles.map(function (tile, key) {
|
||||
translatedTile = {
|
||||
title: formatMessage({id: tile.title}),
|
||||
description: formatMessage({id: tile.description}),
|
||||
|
@ -46,7 +46,7 @@ var ThingsToTry = injectIntl(React.createClass({
|
|||
};
|
||||
translatedTiles.push(
|
||||
<TTTTile
|
||||
key={tile.title}
|
||||
key={key}
|
||||
onGuideClick={this.showTTTModal.bind(this, translatedTile)}
|
||||
{...translatedTile}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue