webpack/redux/actions/RedHatRepositories/repositorySetRepositories.js in katello-3.11.0 vs webpack/redux/actions/RedHatRepositories/repositorySetRepositories.js in katello-3.11.1
- old
+ new
@@ -1,7 +1,8 @@
import api from '../../../services/api';
import { apiError, apiSuccess } from '../../../move_to_foreman/common/helpers.js';
+import { getArchFromPath } from './helpers.js';
import {
REPOSITORY_SET_REPOSITORIES_REQUEST,
REPOSITORY_SET_REPOSITORIES_SUCCESS,
REPOSITORY_SET_REPOSITORIES_FAILURE,
@@ -20,9 +21,10 @@
return repos.map(repo => ({
contentId: parseInt(contentId, 10),
productId: parseInt(productId, 10),
arch: repo.substitutions.basearch,
releasever: repo.substitutions.releasever,
+ displayArch: repo.substitutions.basearch || getArchFromPath(repo.path),
enabled: repo.enabled,
error: false,
loading: false,
}));
}