From af329498cd290d173cf9d63a71f9b588de5552a4 Mon Sep 17 00:00:00 2001 From: amentis Date: Thu, 21 Mar 2024 17:36:55 +0200 Subject: [PATCH] small fix --- .../src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts index 74a235736..54d886dfc 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts @@ -197,7 +197,7 @@ export class DmpEditorComponent extends BaseEditor implemen this.buildForm(); } - if (this.item.id != null) { + if (this.item && this.item.id != null) { this.checkLock(this.item.id, LockTargetType.Dmp, 'DMP-EDITOR.LOCKED-DIALOG.TITLE', 'DMP-EDITOR.LOCKED-DIALOG.MESSAGE'); } } catch (error) {