Skip to content

Commit

Permalink
Merge pull request #132 from suvarnakale/main
Browse files Browse the repository at this point in the history
#796-Already added VC template is coming- issue fixed
  • Loading branch information
Pratikshakhandagale authored Oct 3, 2023
2 parents 87bbc6f + a95cc25 commit c69d7ee
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 c69d7ee

Please sign in to comment.