X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fpolicy%2Fno-type-policy-editor%2Fno-type-policy-editor.component.ts;h=877e0e37e7115fe4a1fd756895bdfb7efa0fdcc8;hb=e0f0ae59f6f1958617c927bdfbec63e037efed97;hp=5d2398c64d866a3c0f4c5f1970c2f046fa57deb1;hpb=04b4e622e4435be82fa05ceefa37e8e4ca419e84;p=portal%2Fnonrtric-controlpanel.git diff --git a/webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.ts b/webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.ts index 5d2398c..877e0e3 100644 --- a/webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.ts +++ b/webapp-frontend/src/app/policy/no-type-policy-editor/no-type-policy-editor.component.ts @@ -54,6 +54,7 @@ export class NoTypePolicyEditorComponent implements OnInit { this.jsonValidator(), ]) ); + if (!this.policyJson) this.policyJson = "{}"; } get policyJsonTextArea(): AbstractControl {