diff options
Diffstat (limited to 'webapp/components/team_general_tab.jsx')
-rw-r--r-- | webapp/components/team_general_tab.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/team_general_tab.jsx b/webapp/components/team_general_tab.jsx index 7ca8f8fce..4d1860de3 100644 --- a/webapp/components/team_general_tab.jsx +++ b/webapp/components/team_general_tab.jsx @@ -81,7 +81,9 @@ class GeneralTab 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(this.setupInitialState(this.props)); this.props.updateSection(section); } |