better have some sane upper bound here.

This commit is contained in:
Sam 2015-09-04 17:23:37 +10:00
parent b3d6cefef4
commit 6709eaeb3c
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export default Ember.Component.extend({
// we REALLY don't want to be asking for negative counts of notifications
// less than 5 is also not that useful
if (limit < 5) { limit = 5; }
if (limit > 40) { limit = 40; }
// TODO: It's a bit odd to use the store in a component, but this one really
// wants to reach out and grab notifications