FIX: can't create badges
This commit is contained in:
parent
220f9e21e3
commit
9926382185
|
@ -100,7 +100,8 @@ Discourse.Badge = Discourse.Model.extend({
|
|||
},
|
||||
|
||||
badgeTypeClassName: function() {
|
||||
return "badge-type-" + this.get('badge_type.name').toLowerCase();
|
||||
var type = this.get('badge_type.name') || "";
|
||||
return "badge-type-" + type.toLowerCase();
|
||||
}.property('badge_type.name'),
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue