From 145876681f03f68d2fcdd4f0339f6b2b9f7b9958 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 5 Dec 2016 10:19:12 -0300 Subject: Fix react warnings and part of backstage (#4706) --- webapp/components/access_history_modal.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'webapp/components/access_history_modal.jsx') 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 = (); } else { content = ( -- cgit v1.2.3-1-g7c22