Fix #1570, now zero means hide cards count

This commit is contained in:
Andrés Manelli 2018-04-15 23:26:46 -03:00
parent b735817901
commit 31584e849c
2 changed files with 3 additions and 2 deletions

View file

@ -28,7 +28,8 @@ BlazeComponent.extendComponent({
},
showCardsCountForList(count) {
return count > this.limitToShowCardsCount();
const limit = this.limitToShowCardsCount();
return limit > 0 && count > limit;
},
events() {