mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
better have some sane upper bound here.
This commit is contained in:
parent
b3d6cefef4
commit
6709eaeb3c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue