webpack/redux/actions/RedHatRepositories/enabled.js in katello-4.4.2.2 vs webpack/redux/actions/RedHatRepositories/enabled.js in katello-4.5.0.rc1
- old
+ new
@@ -42,17 +42,18 @@
return { searchParams, repoParams };
};
export const disableRepository = repository => async (dispatch) => {
const {
- productId, contentId, arch, releasever,
+ productId, contentId, arch, releasever, id,
} = repository;
const repoData = {
id: contentId,
product_id: productId,
basearch: arch,
releasever,
+ repository_id: id,
};
dispatch({ type: DISABLE_REPOSITORY_REQUEST, repository });
const url = `/products/${productId}/repository_sets/${contentId}/disable`;
try {
const result = await api.put(url, repoData);