Skip to content

Commit

Permalink
Set initial state of data type filter.
Browse files Browse the repository at this point in the history
Fixes #98
  • Loading branch information
Anand Thakker committed Jul 1, 2015
1 parent 08db89f commit 14e0c0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/assets/scripts/components/filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ var Filters = module.exports = React.createClass({
getInitialState: function () {
return {
date: 'all',
resolution: 'all'
resolution: 'all',
dataType: 'all'
}
},

Expand Down
3 changes: 2 additions & 1 deletion app/assets/scripts/stores/search_query_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ var _ = require('lodash');
module.exports = Reflux.createStore({
_parameters: {
date: 'all',
resolution: 'all'
resolution: 'all',
dataType: 'all'
},

init: function () {
Expand Down

0 comments on commit 14e0c0d

Please sign in to comment.