Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 f7fe36477 -> 49431ac8d


AMBARI-17820. UI sometimes stucks while deleting service due to JS error. 
(jaimin)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/49431ac8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/49431ac8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/49431ac8

Branch: refs/heads/branch-2.4
Commit: 49431ac8d1ae69af274adf38d3fe188fa26634df
Parents: f7fe364
Author: Jaimin Jetly <[email protected]>
Authored: Wed Jul 20 12:14:24 2016 -0700
Committer: Jaimin Jetly <[email protected]>
Committed: Wed Jul 20 13:12:47 2016 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/service/info/summary.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/49431ac8/ambari-web/app/views/main/service/info/summary.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/info/summary.js 
b/ambari-web/app/views/main/service/info/summary.js
index 6191e6a..e9d12e6 100644
--- a/ambari-web/app/views/main/service/info/summary.js
+++ b/ambari-web/app/views/main/service/info/summary.js
@@ -198,7 +198,8 @@ App.MainServiceInfoSummaryView = 
Em.View.extend(App.UserPref, App.TimeRangeMixin
     if (source.length > data.length) {
       sourceIds.forEach(function(item, index) {
         if (!dataIds.contains(item)) {
-          source.removeAt(index);
+          var sourceItem = source.findProperty('id',item);
+          source.removeObject(sourceItem);
         }
       });
     } else if (source.length < data.length) {

Reply via email to