aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/list/ListQuery.js
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2020-01-30 23:38:25 +0100
committerQuentin Gliech <quentingliech@gmail.com>2020-01-30 23:38:25 +0100
commitadb28885a368e4ccffe7bfccdf45931e37f66a72 (patch)
treef896bdd6bff2d0a27850e0b55f1ab2f2265665bb /webui/src/list/ListQuery.js
parentead5bad7854bc2342e0998c8a45f62e9aace7887 (diff)
downloadgit-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.js2
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);