Skip to content

Commit 9719fed

Browse files
committed
Fix typo, depend on computed arrays
1 parent ecd9d18 commit 9719fed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/controllers/dashboard.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ export default Ember.Controller.extend({
1919
this.myStats = 0;
2020
},
2121

22-
visibleCrates: computed('myCreates', function() {
22+
visibleCrates: computed('myCrates.[]', function() {
2323
return this.get('myCrates').slice(0, TO_SHOW);
2424
}),
2525

26-
visibleFollowing: computed('myFollowing', function() {
26+
visibleFollowing: computed('myFollowing.[]', function() {
2727
return this.get('myFollowing').slice(0, TO_SHOW);
2828
}),
2929

3030
visibleStats: computed('myStats', function() {
3131
return this.get('myStats');
3232
}),
3333

34-
hasMoreCrates: computed('myCreates', function() {
34+
hasMoreCrates: computed('myCrates.[]', function() {
3535
return this.get('myCrates.length') > TO_SHOW;
3636
}),
3737

38-
hasMoreFollowing: computed('myFollowing', function() {
38+
hasMoreFollowing: computed('myFollowing.[]', function() {
3939
return this.get('myFollowing.length') > TO_SHOW;
4040
}),
4141

0 commit comments

Comments
 (0)