summaryrefslogtreecommitdiffstats
path: root/web/react/components/admin_console/logs.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/admin_console/logs.jsx')
-rw-r--r--web/react/components/admin_console/logs.jsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/react/components/admin_console/logs.jsx b/web/react/components/admin_console/logs.jsx
index d7de76a94..0bb749bbd 100644
--- a/web/react/components/admin_console/logs.jsx
+++ b/web/react/components/admin_console/logs.jsx
@@ -21,9 +21,11 @@ export default class Logs extends React.Component {
AdminStore.addLogChangeListener(this.onLogListenerChange);
AsyncClient.getLogs();
}
+
componentWillUnmount() {
AdminStore.removeLogChangeListener(this.onLogListenerChange);
}
+
onLogListenerChange() {
this.setState({
logs: AdminStore.getLogs()