aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-17 00:15:40 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-17 00:15:40 +0100
commit14e91cb5edb8ab73dbb7c4cf3ae72e41aafdec71 (patch)
treec9513e93b83092446c565d07f42916b5a070fe3f /webui/src/pages
parent86a35f182975167ffe836f6d5f63260828dbca58 (diff)
downloadgit-bug-14e91cb5edb8ab73dbb7c4cf3ae72e41aafdec71.tar.gz
webui: fix the default query
Diffstat (limited to 'webui/src/pages')
-rw-r--r--webui/src/pages/list/ListQuery.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui/src/pages/list/ListQuery.tsx b/webui/src/pages/list/ListQuery.tsx
index 8cf68693..a0db0348 100644
--- a/webui/src/pages/list/ListQuery.tsx
+++ b/webui/src/pages/list/ListQuery.tsx
@@ -164,7 +164,7 @@ function ListQuery() {
const location = useLocation();
const history = useHistory();
const params = new URLSearchParams(location.search);
- const query = params.get('q') || 'status:open';
+ const query = params.has('q') ? (params.get('q') || '') : 'status:open';
const [input, setInput] = useState(query);