You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2018/01/02 16:56:05 UTC
[14/37] ambari git commit: AMBARI-22691 JS error on Version edit page
in Admin View. (atkach)
AMBARI-22691 JS error on Version edit page in Admin View. (atkach)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8ea7b198
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8ea7b198
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8ea7b198
Branch: refs/heads/branch-feature-AMBARI-21674
Commit: 8ea7b198f3e998bc41b196a4c7befe9d6f92fd94
Parents: 98356b3
Author: Andrii Tkach <at...@apache.org>
Authored: Fri Dec 22 14:10:26 2017 +0200
Committer: Andrii Tkach <at...@apache.org>
Committed: Fri Dec 22 14:10:26 2017 +0200
----------------------------------------------------------------------
.../src/main/resources/ui/admin-web/app/scripts/services/Stack.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/8ea7b198/ambari-admin/src/main/resources/ui/admin-web/app/scripts/services/Stack.js
----------------------------------------------------------------------
diff --git a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/services/Stack.js b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/services/Stack.js
index 4f111fe..c86ee29 100644
--- a/ambari-admin/src/main/resources/ui/admin-web/app/scripts/services/Stack.js
+++ b/ambari-admin/src/main/resources/ui/admin-web/app/scripts/services/Stack.js
@@ -92,7 +92,7 @@ angular.module('ambariAdminConsole')
$http.get(Settings.baseUrl + '/services/AMBARI/components/AMBARI_SERVER?fields=RootServiceComponents/properties/gpl.license.accepted&minimal_response=true', {mock: 'true'})
.then(function(data) {
- deferred.resolve(data.data.RootServiceComponents.properties['gpl.license.accepted']);
+ deferred.resolve(data.data.RootServiceComponents.properties && data.data.RootServiceComponents.properties['gpl.license.accepted']);
})
.catch(function(data) {
deferred.reject(data);