Browse Source

refactor: update throw error condition in feature-management.component

pull/5380/head
mehmet-erim 6 years ago
parent
commit
268c1ed539
  1. 4
      npm/ng-packs/packages/feature-management/src/lib/components/feature-management/feature-management.component.ts

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

@ -48,8 +48,8 @@ export class FeatureManagementComponent
constructor(private store: Store) {}
openModal() {
if (!this.providerKey || !this.providerName) {
throw new Error('Provider Key and Provider Name are required.');
if (!this.providerName) {
throw new Error('providerName is required.');
}
this.getFeatures();

Loading…
Cancel
Save