From 14e91cb5edb8ab73dbb7c4cf3ae72e41aafdec71 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 17 Feb 2020 00:15:40 +0100 Subject: webui: fix the default query --- webui/src/pages/list/ListQuery.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webui/src/pages') 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); -- cgit