From 9b9bd0646cd11807d1fd0248d225ddb0d1a6ffb5 Mon Sep 17 00:00:00 2001 From: Suhas-G Date: Sun, 13 Oct 2024 22:18:03 +0530 Subject: [PATCH] fix: clear the project info object --- frontend/src/core/editor.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/core/editor.ts b/frontend/src/core/editor.ts index 1789c5e0..75677b8b 100644 --- a/frontend/src/core/editor.ts +++ b/frontend/src/core/editor.ts @@ -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); }