Repository: ambari
Updated Branches:
  refs/heads/trunk 69849050d -> 4ed15d018


AMBARI-11555. JS error on all Hosts bulk commands (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 4ed15d018b99311cd6849dd578178f84e6053752
Parents: 6984905
Author: Oleg Nechiporenko <onechipore...@apache.org>
Authored: Sat May 30 12:46:18 2015 +0300
Committer: Oleg Nechiporenko <onechipore...@apache.org>
Committed: Sat May 30 12:46:18 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/hosts_mapper.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4ed15d01/ambari-web/app/mappers/hosts_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/hosts_mapper.js 
b/ambari-web/app/mappers/hosts_mapper.js
index da4bba9..9a18dc2 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -108,6 +108,9 @@ App.hostsMapper = App.QuickDataMapper.create({
           if (!newHostComponentsMap[serviceName]) {
             newHostComponentsMap[serviceName] = [];
           }
+          if (!currentServiceComponentsMap[serviceName]) {
+            currentServiceComponentsMap[serviceName] = [];
+          }
           if (!currentServiceComponentsMap[serviceName][component.id]) {
             newHostComponentsMap[serviceName].push(component.id);
           }

Reply via email to