[client] Fix search page not being rendered when query is empty

This commit is contained in:
Laura Hausmann 2023-11-19 04:34:27 +01:00
parent 47d4b3aba1
commit e5a003d6fb
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -113,7 +113,7 @@ const getUrlParams = () =>
.split("&")
.reduce((result, query) => {
const [k, v] = query.split("=");
result[k] = decodeURIComponent(v.replace('+', '%20'));
result[k] = decodeURIComponent(v?.replace('+', '%20'));
return result;
}, {});