Fix fillSearchField bug
This commit is contained in:
parent
efd0338a33
commit
16b1ffbe45
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue