diff --git a/src/app/adf-services/df-service-details/df-service-details.component.ts b/src/app/adf-services/df-service-details/df-service-details.component.ts index 6f848438..ad09f635 100644 --- a/src/app/adf-services/df-service-details/df-service-details.component.ts +++ b/src/app/adf-services/df-service-details/df-service-details.component.ts @@ -146,7 +146,10 @@ export class DfServiceDetailsComponent implements OnInit { if (route['groups'] && route['groups'][0] === 'Database') { this.isDatabase = true; } - if (route['groups'] && route['groups'][0] === 'Remote Service') { + if ( + (route['groups'] && route['groups'][0] === 'Remote Service') || + (route['groups'] && route['groups'][0] === 'Script') + ) { this.isNetworkService = true; } const { data, serviceTypes, groups } = route; @@ -198,12 +201,11 @@ export class DfServiceDetailsComponent implements OnInit { (this.serviceDefinition = data?.serviceDocByServiceId.content), this.serviceForm.controls['type'].disable(); } else { - (this.serviceDefinition = data?.serviceDocByServiceId.content), - this.serviceForm.controls['type'].valueChanges.subscribe(value => { - this.serviceForm.removeControl('config'); - this.configSchema = this.getConfigSchema(value); - this.initializeConfig(); - }); + this.serviceForm.controls['type'].valueChanges.subscribe(value => { + this.serviceForm.removeControl('config'); + this.configSchema = this.getConfigSchema(value); + this.initializeConfig(); + }); } }); if (this.isDatabase) {