Skip to content

Commit

Permalink
UIU-3273: check if userId is present in withUserRoles HOC (#2816)
Browse files Browse the repository at this point in the history
Refs UIU-3273.
  • Loading branch information
aidynoJ authored Dec 3, 2024
1 parent 553a2d1 commit fae5ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* Leverage API supported sorting of columns on pre-registrations records list. Refs UIU-3249.
* Add permission to access users-keycloak delete method. Refs UIU-3282.
* Fix issue with `Proxy borrower` field value. Refs UIU-3290.
* Check if userId is present in withUserRoles HOC. Refs UIU-3273.



## [11.0.7](https://github.com/folio-org/ui-users/tree/v11.0.7) (2024-11-30)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v11.0.6...v11.0.7)
Expand Down
2 changes: 1 addition & 1 deletion src/components/Wrappers/withUserRoles.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const withUserRoles = (WrappedComponent) => (props) => {

useEffect(() => {
// eslint-disable-next-line react/prop-types
if (props.stripes.hasInterface('users-keycloak') && !isAllRolesDataLoading) {
if (props.stripes.hasInterface('users-keycloak') && !isAllRolesDataLoading && !!userId) {
api.get(
'roles/users', { searchParams },
)
Expand Down

0 comments on commit fae5ae1

Please sign in to comment.