diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2020-01-30 23:38:25 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2020-01-30 23:38:25 +0100 |
commit | adb28885a368e4ccffe7bfccdf45931e37f66a72 (patch) | |
tree | f896bdd6bff2d0a27850e0b55f1ab2f2265665bb /webui/src/list/ListQuery.js | |
parent | ead5bad7854bc2342e0998c8a45f62e9aace7887 (diff) | |
download | git-bug-adb28885a368e4ccffe7bfccdf45931e37f66a72.tar.gz |
webui: add open/closed issues count
Diffstat (limited to 'webui/src/list/ListQuery.js')
-rw-r--r-- | webui/src/list/ListQuery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webui/src/list/ListQuery.js b/webui/src/list/ListQuery.js index 01113f6c..8eeec240 100644 --- a/webui/src/list/ListQuery.js +++ b/webui/src/list/ListQuery.js @@ -187,7 +187,7 @@ function ListQuery() { const location = useLocation(); const history = useHistory(); const params = new URLSearchParams(location.search); - const query = params.get('q'); + const query = params.get('q') || ''; const [input, setInput] = useState(query); |