summaryrefslogtreecommitdiffstats
path: root/web/react/components/activity_log_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/activity_log_modal.jsx')
-rw-r--r--web/react/components/activity_log_modal.jsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/web/react/components/activity_log_modal.jsx b/web/react/components/activity_log_modal.jsx
index af423a601..6c329d416 100644
--- a/web/react/components/activity_log_modal.jsx
+++ b/web/react/components/activity_log_modal.jsx
@@ -63,11 +63,6 @@ export default class ActivityLogModal extends React.Component {
componentDidMount() {
UserStore.addSessionsChangeListener(this.onListenerChange);
}
- componentDidUpdate(prevProps) {
- if (this.props.show && !prevProps.show) {
- this.onShow();
- }
- }
componentWillUnmount() {
UserStore.removeSessionsChangeListener(this.onListenerChange);
}
@@ -161,6 +156,7 @@ export default class ActivityLogModal extends React.Component {
return (
<Modal
show={this.props.show}
+ onShow={this.onShow}
onHide={this.onHide}
bsSize='large'
>