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/access_history_modal.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/access_history_modal.jsx')
-rw-r--r-- | webapp/components/access_history_modal.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/access_history_modal.jsx b/webapp/components/access_history_modal.jsx index 4ed2ad9ab..28a2b6b8f 100644 --- a/webapp/components/access_history_modal.jsx +++ b/webapp/components/access_history_modal.jsx @@ -57,15 +57,15 @@ export default class AccessHistoryModal extends React.Component { } onAuditChange() { - var newState = this.getStateFromStoresForAudits(); + const newState = this.getStateFromStoresForAudits(); if (!Utils.areObjectsEqual(newState.audits, this.state.audits)) { this.setState(newState); } } render() { - var content; - if (this.state.audits.loading) { + let content; + if (this.state.audits.length === 0) { content = (<LoadingScreen/>); } else { content = ( |