fix key warning

pull/21833/head
Matthew Hodgson 2016-09-06 01:44:42 +01:00
parent 850578a973
commit b4c1eca1c5
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export default class MessageComposer extends React.Component {
let fileList = []; let fileList = [];
for (let i=0; i<files.length; i++) { for (let i=0; i<files.length; i++) {
fileList.push(<li> fileList.push(<li key={i}>
<TintableSvg key={i} 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>);
} }