summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_attachment_list.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-08-28 09:05:04 -0400
committerJoramWilander <jwawilander@gmail.com>2015-08-28 09:05:04 -0400
commite54354f92a5022256e11b245c030bb62eb5232e7 (patch)
treee2cc452c9e5af4fbdc8763ce90325282caae31b7 /web/react/components/file_attachment_list.jsx
parent2bc6451e39a4080832e0b6250f536972c42b1f48 (diff)
downloadchat-e54354f92a5022256e11b245c030bb62eb5232e7.tar.gz
chat-e54354f92a5022256e11b245c030bb62eb5232e7.tar.bz2
chat-e54354f92a5022256e11b245c030bb62eb5232e7.zip
Fixes root images not loading when switich RHS threads.
Diffstat (limited to 'web/react/components/file_attachment_list.jsx')
-rw-r--r--web/react/components/file_attachment_list.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/file_attachment_list.jsx b/web/react/components/file_attachment_list.jsx
index b92442957..df4424d03 100644
--- a/web/react/components/file_attachment_list.jsx
+++ b/web/react/components/file_attachment_list.jsx
@@ -26,7 +26,7 @@ module.exports = React.createClass({
var postFiles = [];
for (var i = 0; i < filenames.length && i < Constants.MAX_DISPLAY_FILES; i++) {
- postFiles.push(<FileAttachment key={i} filenames={filenames} index={i} modalId={modalId} handleImageClick={this.handleImageClick} />);
+ postFiles.push(<FileAttachment key={i} filename={filenames[i]} index={i} modalId={modalId} handleImageClick={this.handleImageClick} />);
}
return (