From 9a4a1c5f96c95cb79cfd4ba6f88e47404e8d9b5d Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Fri, 14 Aug 2015 19:38:01 +0500 Subject: Initialising trimmedFilename variable --- web/react/components/file_attachment.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'web/react') 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)) + "..."; } -- cgit v1.2.3-1-g7c22