Fix fillSearchField bug

This commit is contained in:
Rob Watson 2020-07-04 08:46:43 +02:00
parent efd0338a33
commit 16b1ffbe45
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class Navbar extends Component<any, State> {
}
fillSearchField() {
let splitPath: Array<string> = 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],