webpack/redux/reducers/RedHatRepositories/sets.js in katello-3.13.4 vs webpack/redux/reducers/RedHatRepositories/sets.js in katello-3.14.0.rc1
- old
+ new
@@ -1,7 +1,7 @@
import Immutable from 'seamless-immutable';
-import { isEmpty } from 'lodash';
+import { isEmpty, get } from 'lodash';
import {
REPOSITORY_SETS_REQUEST,
REPOSITORY_SETS_SUCCESS,
REPOSITORY_SETS_FAILURE,
@@ -38,9 +38,10 @@
case REPOSITORY_SETS_FAILURE:
return Immutable({
error: payload,
loading: false,
+ missingPermissions: get(payload, ['response', 'data', 'error', 'missing_permissions']),
});
default:
return state;
}