Skip to content

Commit

Permalink
Pass location.search parameter through history search. (#2573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Terala-Priyanka authored Oct 19, 2023
1 parent f1b93ac commit 8bfd17d
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 @@ -2,6 +2,7 @@

## [10.1.0] IN PROGRESS
* Also support `feesfines` interface version `19.0`. Refs UIU-2960.
* Pass location.search parameter through history search. Refs UIU-2971.

## [10.0.1](https://github.com/folio-org/ui-users/tree/v10.0.1) (2023-10-18)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v10.0.0...v10.0.1)
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 8bfd17d

Please sign in to comment.