fix: Make search query string user friendly (#2283)
* Upgrade query-string package and skip empty string * Run yarn-deduplicate command
This commit is contained in:
@@ -140,10 +140,13 @@ class Search extends React.Component<Props> {
|
||||
}) => {
|
||||
this.props.history.replace({
|
||||
pathname: this.props.location.pathname,
|
||||
search: queryString.stringify({
|
||||
...queryString.parse(this.props.location.search),
|
||||
...search,
|
||||
}),
|
||||
search: queryString.stringify(
|
||||
{
|
||||
...queryString.parse(this.props.location.search),
|
||||
...search,
|
||||
},
|
||||
{ skipEmptyString: true }
|
||||
),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user