webpack/scenes/Organizations/OrganizationActions.js in katello-3.7.0.rc1 vs webpack/scenes/Organizations/OrganizationActions.js in katello-3.7.0.rc2

- old
+ new

@@ -16,11 +16,11 @@ const params = { ...propsToSnakeCase(extendedParams), }; return api - .get(`/organizations/${orgId}`, {}, params) + .get(`/organizations/${orgId()}`, {}, params) .then(({ data }) => { dispatch({ type: GET_ORGANIZATION_SUCCESS, response: data, }); @@ -35,15 +35,15 @@ export const saveOrganization = (extendedParams = {}) => (dispatch) => { dispatch({ type: SAVE_ORGANIZATION_REQUEST }); const params = { - ...{ id: orgId }, + ...{ id: orgId() }, ...propsToSnakeCase(extendedParams), }; return api - .put(`/organizations/${orgId}`, params) + .put(`/organizations/${orgId()}`, params) .then(({ data }) => { dispatch({ type: SAVE_ORGANIZATION_SUCCESS, response: data, });