Fixed empty search highlighting breaking site

This commit is contained in:
squidfunk
2021-11-21 20:08:09 +01:00
parent db1c069e52
commit 15f74d81fd
4 changed files with 6 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ export function mountSearchHiglight(
location$
.pipe(
startWith(getLocation()),
filter(url => url.searchParams.has("h"))
filter(url => !!url.searchParams.get("h"))
)
])
.pipe(