Changed the style of key-assignment to allow for more assured variance
Этот коммит содержится в:
@@ -89,7 +89,6 @@ module.exports = React.createClass({
|
|||||||
var fileInfo = utils.splitFileLocation(filenames[i]);
|
var fileInfo = utils.splitFileLocation(filenames[i]);
|
||||||
if (Object.keys(fileInfo).length === 0) continue;
|
if (Object.keys(fileInfo).length === 0) continue;
|
||||||
|
|
||||||
|
|
||||||
var type = utils.getFileType(fileInfo.ext);
|
var type = utils.getFileType(fileInfo.ext);
|
||||||
|
|
||||||
if (type === "image") {
|
if (type === "image") {
|
||||||
@@ -103,7 +102,7 @@ module.exports = React.createClass({
|
|||||||
images.push(filenames[i]);
|
images.push(filenames[i]);
|
||||||
} else if (i < Constants.MAX_DISPLAY_FILES) {
|
} else if (i < Constants.MAX_DISPLAY_FILES) {
|
||||||
postFiles.push(
|
postFiles.push(
|
||||||
<div className="post-image__column custom-file" key={fileInfo.name+fileInfo.ext}>
|
<div className="post-image__column custom-file" key={fileInfo.name+i}>
|
||||||
<a href={fileInfo.path+"."+fileInfo.ext} download={fileInfo.name+"."+fileInfo.ext}>
|
<a href={fileInfo.path+"."+fileInfo.ext} download={fileInfo.name+"."+fileInfo.ext}>
|
||||||
<div className={"file-icon "+utils.getIconClassName(type)}/>
|
<div className={"file-icon "+utils.getIconClassName(type)}/>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user