Skip to content

Commit

Permalink
Pass location.search parameter through history search.
Browse files Browse the repository at this point in the history
  • Loading branch information
Terala-Priyanka committed Oct 18, 2023
1 parent 5f8f25f commit 8987217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [10.1.0] IN PROGRESS

* Don't display affiliations of users with types `patron` or `dcb`. Refs UIU-2967.
* Pass location.search parameter through history search. Refs UIU-2971.

## [10.0.0](https://github.com/folio-org/ui-users/tree/v10.0.0) (2023-10-13)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v9.0.3...v10.0.0)
Expand Down
3 changes: 2 additions & 1 deletion src/views/UserEdit/UserEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,9 @@ class UserEdit extends React.Component {
onSubmit={onSubmit}
onCancel={() => {
history.push({
pathname: params.id ? `/users/preview/${params.id}${location.search}` : '/users',
pathname: params.id ? `/users/preview/${params.id}` : '/users',
state: location.state,
search: location.search,
});
}}
uniquenessValidator={this.props.mutator.uniquenessValidator}
Expand Down

0 comments on commit 8987217

Please sign in to comment.