From 16b1ffbe45118726e8854ca6d83a08679a3498f5 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Sat, 4 Jul 2020 08:46:43 +0200 Subject: [PATCH] Fix fillSearchField bug --- server/ui/src/components/navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ui/src/components/navbar.tsx b/server/ui/src/components/navbar.tsx index 08cad6d..fde4884 100644 --- a/server/ui/src/components/navbar.tsx +++ b/server/ui/src/components/navbar.tsx @@ -98,7 +98,7 @@ export class Navbar extends Component { } fillSearchField() { let splitPath: Array = this.context.router.route.location.pathname.split("/"); - if (splitPath.length == 5 && splitPath[1] == 'search') + if (splitPath.length == 7 && splitPath[1] == 'search') this.state.searchParams = { page: Number(splitPath[4]), q: splitPath[3],