webpack/scenes/Organizations/OrganizationActions.js in katello-3.11.2 vs webpack/scenes/Organizations/OrganizationActions.js in katello-3.12.0.rc1
- old
+ new
@@ -1,7 +1,8 @@
+import { propsToSnakeCase } from 'foremanReact/common/helpers';
+
import api, { orgId } from '../../services/api';
-import { propsToSnakeCase } from '../../services/index';
import {
GET_ORGANIZATION_REQUEST,
GET_ORGANIZATION_SUCCESS,
GET_ORGANIZATION_FAILURE,
@@ -46,9 +47,12 @@
.then(({ data }) => {
dispatch({
type: SAVE_ORGANIZATION_SUCCESS,
response: data,
});
+
+ // TODO: Necessary because of https://projects.theforeman.org/issues/26420
+ dispatch(loadOrganization());
})
.catch((result) => {
dispatch({
type: SAVE_ORGANIZATION_FAILURE,
result,