summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-06-30 08:03:58 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-06-30 08:03:58 -0400
commit884df23881bd82d9f7cb4b901a5778636003b747 (patch)
tree3b419b68f7fc5ab983b37fd0e6830158b8c50741 /web
parent74081b7fdc89ae79dd6a8ee5e07739626950c731 (diff)
parent351068491e506eb228335fa100d1aa0416ae132f (diff)
downloadchat-884df23881bd82d9f7cb4b901a5778636003b747.tar.gz
chat-884df23881bd82d9f7cb4b901a5778636003b747.tar.bz2
chat-884df23881bd82d9f7cb4b901a5778636003b747.zip
Merge pull request #103 from nickago/MM-1293
MM-1293 Updated file display key to avoid child flattening
Diffstat (limited to 'web')
-rw-r--r--web/react/components/post_body.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx
index 3079917ec..7d5ef4d33 100644
--- a/web/react/components/post_body.jsx
+++ b/web/react/components/post_body.jsx
@@ -102,7 +102,7 @@ module.exports = React.createClass({
images.push(filenames[i]);
} else if (i < Constants.MAX_DISPLAY_FILES) {
postFiles.push(
- <div className="post-image__column custom-file" key={fileInfo.name}>
+ <div className="post-image__column custom-file" key={fileInfo.name+i}>
<a href={fileInfo.path+"."+fileInfo.ext} download={fileInfo.name+"."+fileInfo.ext}>
<div className={"file-icon "+utils.getIconClassName(type)}/>
</a>