Browse Source

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

Added an if to avoid undefined error
pull/8288/head
Muhammed Altuğ 6 years ago
committed by GitHub
parent
commit
ba01b968a2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts

1
npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts

@ -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