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:
@@ -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: {
|
||||||
|
Reference in New Issue
Block a user