summaryrefslogtreecommitdiffstats
path: root/webapp/components/channel_notifications_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/channel_notifications_modal.jsx')
-rw-r--r--webapp/components/channel_notifications_modal.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/channel_notifications_modal.jsx b/webapp/components/channel_notifications_modal.jsx
index f18cefa23..35a2e4087 100644
--- a/webapp/components/channel_notifications_modal.jsx
+++ b/webapp/components/channel_notifications_modal.jsx
@@ -34,7 +34,9 @@ export default class ChannelNotificationsModal extends React.Component {
};
}
updateSection(section) {
- $('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update');
+ if ($('.section-max').length) {
+ $('.settings-modal .modal-body').scrollTop(0).perfectScrollbar('update');
+ }
this.setState({activeSection: section});
}
componentWillReceiveProps(nextProps) {