Skip to content

Commit da7d806

Browse files
authored
fix: clear the project info object (#346)
1 parent 898bae6 commit da7d806

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/src/core/editor.ts

+7
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ class Editor {
124124
*/
125125
public clearProject(): void {
126126
this.activeModel = new DiagramModel();
127+
this.projectInfo = {
128+
'name': '',
129+
'version': '',
130+
'description': '',
131+
'author': '',
132+
'image': ''
133+
}
127134
this.engine.setModel(this.activeModel);
128135
}
129136

0 commit comments

Comments
 (0)