summaryrefslogtreecommitdiffstats
path: root/webapp/components/team_settings_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/team_settings_modal.jsx')
-rw-r--r--webapp/components/team_settings_modal.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/team_settings_modal.jsx b/webapp/components/team_settings_modal.jsx
index aa7b0831e..bbe426d2e 100644
--- a/webapp/components/team_settings_modal.jsx
+++ b/webapp/components/team_settings_modal.jsx
@@ -58,7 +58,9 @@ class TeamSettingsModal 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});
}
render() {