Repository: ambari
Updated Branches:
  refs/heads/trunk 66a2b9761 -> 1e252acf8


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/1e252acf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1e252acf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1e252acf

Branch: refs/heads/trunk
Commit: 1e252acf8d7e33bcb3cab83feedc2e6f3d1f1163
Parents: 66a2b97
Author: Jaimin Jetly <[email protected]>
Authored: Wed Jul 20 12:14:24 2016 -0700
Committer: Jaimin Jetly <[email protected]>
Committed: Wed Jul 20 13:13:31 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/1e252acf/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