Skip to content

Commit

Permalink
(fix): Fix selection of user role bugs out (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe authored Dec 14, 2023
1 parent 7bdd754 commit bfe25ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const AddStockUserRoleScope: React.FC = () => {
const onRoleChange = (data: { selectedItem: Role }) => {
const rootLocations = locations?.map((x) => x.uuid);
const filteredLocations =
formModel.locations?.filter(
formModel?.locations?.filter(
(x) =>
!rootLocations ||
rootLocations.length === 0 ||
Expand Down

0 comments on commit bfe25ca

Please sign in to comment.