mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
better have some sane upper bound here.
This commit is contained in:
parent
b3d6cefef4
commit
6709eaeb3c
@ -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 New Issue
Block a user