Skip to content

Commit d2d9a8c

Browse files
authored
User orgs ids fix (#1050)
* [SM-153] Fixed user orgs ids list map * [SM-153] Fixed user orgs ids list map * [SM-153] Fixed user orgs ids list map
1 parent f1e7ff4 commit d2d9a8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Redux/actionCreators/ServiceActions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ export const fetchUserOrganizationsList = () => async (dispatch) => {
4242

4343
const onlyUserOrgsFilter = () => async (dispatch) => {
4444
const userOrganizations = await dispatch(fetchUserOrganizationsList());
45-
const userOrganizationsId = userOrganizations.data.map((organization) => organization.orgId);
45+
const userOrganizationsId = userOrganizations.data.map((organization) => organization.org_id);
4646
const filterObj = { orgId: [...userOrganizationsId, process.env.REACT_APP_EXAMPLE_SERVICE_ORG_ID] };
47+
4748
return filterObj;
4849
};
4950

0 commit comments

Comments
 (0)