webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js in katello-3.14.0.rc1 vs webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js in katello-3.14.0.rc2
- old
+ new
@@ -46,19 +46,19 @@
type: 'success',
});
};
reloadAndNotify = async (result) => {
- if (result.success) {
+ if (result && result.success) {
await this.reloadEnabledRepos();
await this.setEnabled();
await this.notifyEnabled(result.data);
}
};
enableRepository = async () => {
- await this.props.enableRepository(this.repoForAction());
- this.reloadAndNotify();
+ const result = await this.props.enableRepository(this.repoForAction());
+ this.reloadAndNotify(result);
};
render() {
const { displayArch, releasever, type } = this.props;