Skip to content

Commit

Permalink
Basic validation on statsPeriod (fixes GH-1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcramer committed Sep 15, 2015
1 parent c51825a commit 096ea80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sentry/static/sentry/app/views/stream.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ var Stream = React.createClass({
currentQuery.statsPeriod :
this.props.defaultStatsPeriod;

if (statsPeriod !== '14d' && statsPeriod !== '24h') {
statsPeriod = this.props.defaultStatsPeriod;
}

return {
filter: filter,
query: query,
Expand Down

0 comments on commit 096ea80

Please sign in to comment.