Skip to content

Commit

Permalink
Fix escape delete of search box
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Hinrichsen committed Jan 27, 2016
1 parent d296896 commit d31d298
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/js/components/AppListFilterComponent.jsx
Expand Up @@ -64,10 +64,14 @@ var AppListFilterComponent = React.createClass({
var query = router.getCurrentQuery();

if (key != null && value != null) {
query[key] = value;
if (value === "") {
delete query[key];
} else {
query[key] = value;
}
}

if (params != null && query.filterText !== "") {
if (params != null) {
router.transitionTo("apps", params, query);
}
},
Expand Down

0 comments on commit d31d298

Please sign in to comment.