1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 16:51:34 +02:00

Prevent item-count-undefined

This commit is contained in:
Toby Zerner
2015-03-24 14:23:55 +10:30
parent 8537ebee85
commit 536281e273

View File

@@ -19,7 +19,8 @@ export default Ember.Component.extend({
}), }),
itemCountClass: Ember.computed('items.length', function() { itemCountClass: Ember.computed('items.length', function() {
return 'item-count-'+this.get('items.length'); var count = this.get('items.length');
return count ? 'item-count-'+this.get('items.length') : '';
}), }),
actions: { actions: {