From 145876681f03f68d2fcdd4f0339f6b2b9f7b9958 Mon Sep 17 00:00:00 2001
From: enahum <nahumhbl@gmail.com>
Date: Mon, 5 Dec 2016 10:19:12 -0300
Subject: Fix react warnings and part of backstage (#4706)

---
 webapp/components/admin_console/file_upload_setting.jsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'webapp/components/admin_console/file_upload_setting.jsx')

diff --git a/webapp/components/admin_console/file_upload_setting.jsx b/webapp/components/admin_console/file_upload_setting.jsx
index 0c1efc168..85cb7f499 100644
--- a/webapp/components/admin_console/file_upload_setting.jsx
+++ b/webapp/components/admin_console/file_upload_setting.jsx
@@ -51,7 +51,6 @@ export default class FileUploadSetting extends Setting {
             if (error) {
                 Utils.clearFileInput(this.refs.fileInput);
             }
-            this.setState({fileSelected: false, fileName: null, serverError: error});
         });
     }
 
@@ -61,7 +60,7 @@ export default class FileUploadSetting extends Setting {
             serverError = <div className='form-group has-error'><label className='control-label'>{this.state.serverError}</label></div>;
         }
 
-        var btnClass = 'btn';
+        let btnClass = 'btn';
         if (this.state.fileSelected) {
             btnClass = 'btn btn-primary';
         }
-- 
cgit v1.2.3-1-g7c22

