X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-frontend%2Fsrc%2Fapp%2Fpolicy-control%2Fpolicy-type.datasource.ts;h=8d9dec7582f87ce2df36bd7e2d438e5243f3085d;hb=268acb16ac1b127220fbfd1ecb8b34e940e19a4b;hp=1b2b93e1e655936c432cbd7df2d1a86244dfba92;hpb=592589c3bcaba8f8d309bccf9068c0fce4434da8;p=nonrtric.git diff --git a/dashboard/webapp-frontend/src/app/policy-control/policy-type.datasource.ts b/dashboard/webapp-frontend/src/app/policy-control/policy-type.datasource.ts index 1b2b93e1..8d9dec75 100644 --- a/dashboard/webapp-frontend/src/app/policy-control/policy-type.datasource.ts +++ b/dashboard/webapp-frontend/src/app/policy-control/policy-type.datasource.ts @@ -58,6 +58,10 @@ export class PolicyTypeDataSource extends DataSource { ) .subscribe((types: PolicyType[]) => { this.rowCount = types.length; + for (let i = 0; i < types.length; i++) { + const policyType = types[i]; + policyType.schemaObject = JSON.parse(policyType.schema); + } this.policyTypeSubject.next(types); }); }