X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy%2Fpolicy-instance%2Fpolicy-instance.component.ts;h=700e929728ff1dd1fa0b7ec836898cc6d16387cd;hb=b5b007356c7bd5bf9f4b99be9d748310dcf3987e;hp=24a7cc7a9cdfddc724f4612cd8745607783cc11d;hpb=41a57e4d75761207f2da883d0e4396c81159e58e;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/policy/policy-instance/policy-instance.component.ts b/webapp-frontend/src/app/policy/policy-instance/policy-instance.component.ts index 24a7cc7..700e929 100644 --- a/webapp-frontend/src/app/policy/policy-instance/policy-instance.component.ts +++ b/webapp-frontend/src/app/policy/policy-instance/policy-instance.component.ts @@ -75,11 +75,7 @@ export class PolicyInstanceComponent implements OnInit, AfterViewInit { } ngOnInit() { - let schemaId = this.policyTypeSchema.id; - if(schemaId.includes('')){ - schemaId = ''; - } - this.policyInstanceDataSource = new PolicyInstanceDataSource(this.policySvc, this.sort, this.notificationService, schemaId); + this.policyInstanceDataSource = new PolicyInstanceDataSource(this.policySvc, this.sort, this.notificationService, this.policyTypeSchema.id); this.expanded.subscribe((isExpanded: boolean) => this.onExpand(isExpanded)); this.policyInstanceDataSource.connect().subscribe((data) => {