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:
Saumya Pandey
2021-07-08 07:15:40 +05:30
committed by GitHub
parent b037ae5dc1
commit 8195791bb2
4 changed files with 21 additions and 33 deletions

View File

@@ -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 }
),
});
};