From 083ad120705ff1e23e266aeb974dec1284f42322 Mon Sep 17 00:00:00 2001 From: kushalpandya Date: Thu, 20 Jul 2017 17:38:11 +0530 Subject: [PATCH] Remove unnecessary `scrollTo` --- .../javascripts/protected_branches/protected_branch_edit.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/protected_branches/protected_branch_edit.js b/app/assets/javascripts/protected_branches/protected_branch_edit.js index f1941f1db83..3b920942a3f 100644 --- a/app/assets/javascripts/protected_branches/protected_branch_edit.js +++ b/app/assets/javascripts/protected_branches/protected_branch_edit.js @@ -57,7 +57,6 @@ export default class ProtectedBranchEdit { }, }, error() { - $.scrollTo(0); new Flash('Failed to update branch!', null, $('.js-protected-branches-list')); }, }).always(() => {