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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts
|
|
@ -83,6 +83,7 @@ export class FeatureManagementComponent |
|
|
|
|
|
|
|
|
getFeatures() { |
|
|
getFeatures() { |
|
|
this.service.get(this.providerName, this.providerKey).subscribe(res => { |
|
|
this.service.get(this.providerName, this.providerKey).subscribe(res => { |
|
|
|
|
|
if (!res.groups?.length) return; |
|
|
this.groups = res.groups.map(({ name, displayName }) => ({ name, displayName })); |
|
|
this.groups = res.groups.map(({ name, displayName }) => ({ name, displayName })); |
|
|
this.selectedGroupDisplayName = this.groups[0].displayName; |
|
|
this.selectedGroupDisplayName = this.groups[0].displayName; |
|
|
this.features = res.groups.reduce( |
|
|
this.features = res.groups.reduce( |
|
|
|