mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Prevent item-count-undefined
This commit is contained in:
parent
b667c87090
commit
e1fb1132da
|
@ -19,7 +19,8 @@ export default Ember.Component.extend({
|
|||
}),
|
||||
|
||||
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: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user