Skip to content

Commit

Permalink
Reset search on map change
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnafu committed Jan 24, 2017
1 parent bd4bc34 commit 2dc1b4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
}
},
"OmniBar",
"FeatureGrid",
"FeatureGrid",
{
"name": "BurgerMenu",
"hide": true
Expand Down
2 changes: 2 additions & 0 deletions web/client/reducers/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const {
} = require('../actions/wfsquery');

const {QUERY_FORM_RESET} = require('../actions/queryform');
const {RESET_CONTROLS} = require('../actions/controls');

const assign = require('object-assign');

Expand Down Expand Up @@ -127,6 +128,7 @@ function query(state = initialState, action) {
resultError: action.error
});
}
case RESET_CONTROLS:
case QUERY_FORM_RESET:
return assign({}, state, {
open: false,
Expand Down

0 comments on commit 2dc1b4f

Please sign in to comment.