fixed empty qurey in url
This commit is contained in:
parent
422b6cb776
commit
c6c0269825
1 changed files with 3 additions and 1 deletions
|
@ -170,6 +170,9 @@ function _Search() {
|
|||
_history.push({
|
||||
pathname: "/search",
|
||||
search: queryString.stringify({
|
||||
...(searchInput && {
|
||||
query: searchInput,
|
||||
}),
|
||||
...(query.from && {
|
||||
from: query.from,
|
||||
}),
|
||||
|
@ -179,7 +182,6 @@ function _Search() {
|
|||
...(query.tags.length > 0 && {
|
||||
tags: query.tags.join(","),
|
||||
}),
|
||||
query: searchInput,
|
||||
}),
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue