Repository: ambari
Updated Branches:
  refs/heads/trunk 2b285dac1 -> ed327bd53


AMBARI-22609. Install wizard stacks on select version step (alexantonenko)


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

Branch: refs/heads/trunk
Commit: ed327bd53eb140789b548044ebd207b3c47ccf3b
Parents: 2b285da
Author: Alex Antonenko <aantone...@hortonworks.com>
Authored: Fri Dec 8 14:37:44 2017 +0300
Committer: Alex Antonenko <aantone...@hortonworks.com>
Committed: Fri Dec 8 14:37:44 2017 +0300

----------------------------------------------------------------------
 ambari-web/app/models/repository.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ed327bd5/ambari-web/app/models/repository.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/repository.js 
b/ambari-web/app/models/repository.js
index d85c55d..58314cf 100644
--- a/ambari-web/app/models/repository.js
+++ b/ambari-web/app/models/repository.js
@@ -71,7 +71,8 @@ App.Repository = DS.Model.extend({
    * @type {boolean}
    */
   isGPL: function () {
-    return this.get('tags').contains('GPL');    
+    var tags = this.get('tags');
+    return tags && tags.contains('GPL');
   }.property('tags'),
 
   /**

Reply via email to