Fix problem with double load of EI tables
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy-control / policy-control.component.ts
index 3a15226..5ff7e88 100644 (file)
@@ -37,7 +37,7 @@ class PolicyTypeInfo {
 }
 
 @Component({
-    selector: 'rd-policy-control',
+    selector: 'nrcp-policy-control',
     templateUrl: './policy-control.component.html',
     styleUrls: ['./policy-control.component.scss'],
     animations: [
@@ -89,7 +89,7 @@ export class PolicyControlComponent implements OnInit {
     }
 
     private isSchemaEmpty(policyTypeSchema: PolicyTypeSchema): boolean {
-        return Object.keys(policyTypeSchema.schemaObject).length === 0;
+        return policyTypeSchema.schemaObject === '{}';
     }
 
     getPolicyTypeInfo(policyTypeSchema: PolicyTypeSchema): PolicyTypeInfo {