Add test of typed policy editor component
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy / typed-policy-editor / typed-policy-editor.component.ts
index d05c78f..5a99e39 100644 (file)
@@ -19,7 +19,7 @@
 //
 
 import { animate, state, style, transition, trigger } from '@angular/animations';
-import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
+import { Component, Input, OnInit } from '@angular/core';
 import { JsonPointer } from 'angular6-json-schema-form';
 
 @Component({
@@ -65,8 +65,7 @@ export class TypedPolicyEditorComponent implements OnInit {
     formIsValid: boolean = false;
     formValidationErrors: any;
 
-    constructor(
-        private cdr: ChangeDetectorRef) {
+    constructor() {
         this.formActive = false;
     }
 
@@ -74,10 +73,6 @@ export class TypedPolicyEditorComponent implements OnInit {
          this.formActive = true;
     }
 
-    ngAfterViewInit() {
-        this.cdr.detectChanges();
-    }
-
     public onChanges(formData: any) {
         this.liveFormData = formData;
     }