You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix @aviraldg thinko on needing a key on arrays :)
This commit is contained in:
@@ -58,7 +58,7 @@ module.exports = React.createClass({
|
|||||||
var fileList = [];
|
var fileList = [];
|
||||||
for(var i=0; i<files.length; i++) {
|
for(var i=0; i<files.length; i++) {
|
||||||
fileList.push(<li>
|
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>);
|
</li>);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user