summaryrefslogtreecommitdiffstats
path: root/web/react
diff options
context:
space:
mode:
Diffstat (limited to 'web/react')
-rw-r--r--web/react/components/file_attachment.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx
index de9e2a04b..5eba3a14e 100644
--- a/web/react/components/file_attachment.jsx
+++ b/web/react/components/file_attachment.jsx
@@ -114,6 +114,7 @@ module.exports = React.createClass({
}
var filenameString = decodeURIComponent(utils.getFileName(filename));
+ var trimmedFilename;
if(filenameString.length > 35){
trimmedFilename = filenameString.substring(0, Math.min(35,filenameString.length)) + "...";
}