Skip to content

Commit

Permalink
fix: clear the project info object
Browse files Browse the repository at this point in the history
  • Loading branch information
Suhas-G committed Oct 13, 2024
1 parent 84f585a commit 9b9bd06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/core/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ class Editor {
*/
public clearProject(): void {
this.activeModel = new DiagramModel();
this.projectInfo = {
'name': '',
'version': '',
'description': '',
'author': '',
'image': ''
}
this.engine.setModel(this.activeModel);
}

Expand Down

0 comments on commit 9b9bd06

Please sign in to comment.