From e5a3e557376363042bbaf9923fca0d57fb6b8b3a Mon Sep 17 00:00:00 2001
From: Asaad Mahmood <asaadmahmood@users.noreply.github.com>
Date: Thu, 18 Aug 2016 19:09:33 +0500
Subject: PLT-3842 - Fixing scrolling issue on account/team settings modal
 (#3819)

---
 webapp/components/channel_notifications_modal.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'webapp/components/channel_notifications_modal.jsx')

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) {
-- 
cgit v1.2.3-1-g7c22

