fix @aviraldg thinko on needing a key on arrays :)

pull/21833/head
Matthew Hodgson 2016-04-14 19:11:09 +01:00
parent 21fd5078f9
commit 81d5e16225
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ module.exports = React.createClass({
var fileList = [];
for(var i=0; i<files.length; i++) {
fileList.push(<li>
<TintableSvg src="img/files.svg" width="16" height="16" /> {files[i].name}
<TintableSvg key={i} src="img/files.svg" width="16" height="16" /> {files[i].name}
</li>);
}