Merge pull request #8284 from abpframework/fix/feature-management

Added an if to avoid undefined error
pull/8288/head
Muhammed Altuğ 5 years ago committed by GitHub
commit ba01b968a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,6 +83,7 @@ export class FeatureManagementComponent
getFeatures() {
this.service.get(this.providerName, this.providerKey).subscribe(res => {
if (!res.groups?.length) return;
this.groups = res.groups.map(({ name, displayName }) => ({ name, displayName }));
this.selectedGroupDisplayName = this.groups[0].displayName;
this.features = res.groups.reduce(

Loading…
Cancel
Save