diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-07-27 12:36:14 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-07-28 10:07:11 -0400 |
commit | 1842868410ff13b46053f363eb22595faf9d2e7c (patch) | |
tree | b1f7e2eba41525394ca6d8d1c641a23588f5609c /web/react/components | |
parent | d8e9b7c8e4d9450995855a22005a82541f67a500 (diff) | |
download | chat-1842868410ff13b46053f363eb22595faf9d2e7c.tar.gz chat-1842868410ff13b46053f363eb22595faf9d2e7c.tar.bz2 chat-1842868410ff13b46053f363eb22595faf9d2e7c.zip |
Display thumbnails for files without file extensions
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/post_body.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index 7871f52b7..9f598ecb3 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -126,7 +126,7 @@ module.exports = React.createClass({ } else if (i < Constants.MAX_DISPLAY_FILES) { postFiles.push( <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 ? "." + fileInfo.ext : "")} download={fileInfo.name + (fileInfo.ext ? "." + fileInfo.ext : "")}> <div className={"file-icon "+utils.getIconClassName(type)}/> </a> </div> |