diff options
author | enahum <nahumhbl@gmail.com> | 2016-12-05 10:19:12 -0300 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-12-05 08:19:12 -0500 |
commit | 145876681f03f68d2fcdd4f0339f6b2b9f7b9958 (patch) | |
tree | a1d46412813338d5e9453e3fc515dd52188cef91 /webapp/components/admin_console/file_upload_setting.jsx | |
parent | 05783664cd91e278913db5504e60bb8bc2992cb6 (diff) | |
download | chat-145876681f03f68d2fcdd4f0339f6b2b9f7b9958.tar.gz chat-145876681f03f68d2fcdd4f0339f6b2b9f7b9958.tar.bz2 chat-145876681f03f68d2fcdd4f0339f6b2b9f7b9958.zip |
Fix react warnings and part of backstage (#4706)
Diffstat (limited to 'webapp/components/admin_console/file_upload_setting.jsx')
-rw-r--r-- | webapp/components/admin_console/file_upload_setting.jsx | 3 |
1 files changed, 1 insertions, 2 deletions
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'; } |