fix(ui): fix empty string handling in search param parsing code, make it more testable

This commit is contained in:
Łukasz Mierzwa
2018-08-20 13:10:15 +01:00
parent 815a22ab89
commit 4c41d37c21
2 changed files with 11 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ class App extends Component {
let filters;
// parse and decode request query args
const p = DecodeLocationSearch();
const p = DecodeLocationSearch(window.location.search);
// p.defaultsUsed means that unsee URI didn't have ?q=foo query args
if (p.defaultsUsed) {