small fix

This commit is contained in:
amentis 2024-03-21 17:36:55 +02:00
parent 37e128ec15
commit af329498cd
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ export class DmpEditorComponent extends BaseEditor<DmpEditorModel, Dmp> implemen
this.buildForm(); 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'); this.checkLock(this.item.id, LockTargetType.Dmp, 'DMP-EDITOR.LOCKED-DIALOG.TITLE', 'DMP-EDITOR.LOCKED-DIALOG.MESSAGE');
} }
} catch (error) { } catch (error) {