Skip to content

Commit

Permalink
#796-Already added VC template is coming- issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarnakale committed Sep 29, 2023
1 parent 87bbc6f commit a95cc25
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/admin/edit-template/edit-template.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { Component, OnInit, ViewChild, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { AnyARecord } from 'dns';
import { map } from 'rxjs/operators';
Expand All @@ -16,7 +16,7 @@ import { SchemaService } from '../../services/data/schema.service';
templateUrl: './edit-template.component.html',
styleUrls: ['./edit-template.component.scss']
})
export class EditTemplateComponent implements OnInit {
export class EditTemplateComponent implements OnInit, OnDestroy {

public editorOptions: JsonEditorOptions;
public data: any;
Expand Down Expand Up @@ -569,5 +569,8 @@ export class EditTemplateComponent implements OnInit {
this.htmlDiv = true;
}


ngOnDestroy(){
this.userHtml = '';
this.editor.runCommand('core:canvas-clear');
}
}

0 comments on commit a95cc25

Please sign in to comment.