diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-17 00:15:40 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-17 00:15:40 +0100 |
commit | 14e91cb5edb8ab73dbb7c4cf3ae72e41aafdec71 (patch) | |
tree | c9513e93b83092446c565d07f42916b5a070fe3f /webui/src/pages | |
parent | 86a35f182975167ffe836f6d5f63260828dbca58 (diff) | |
download | git-bug-14e91cb5edb8ab73dbb7c4cf3ae72e41aafdec71.tar.gz |
webui: fix the default query
Diffstat (limited to 'webui/src/pages')
-rw-r--r-- | webui/src/pages/list/ListQuery.tsx | 2 |
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); |