fixed bug

This commit is contained in:
Sofia Papacharalampous 2024-05-13 13:59:57 +03:00
parent 66f2637884
commit b0a156ce17
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export class DmpCloneDialogEditorModel implements CloneDmpPersist {
this.id = item.id;
this.label = item.label + " New";
this.description = item.description;
this.descriptions = item.descriptions.map(d=> d.id);
this.descriptions = item.descriptions?.map(d=> d.id);
}
return this;
}

View File

@ -23,7 +23,7 @@ export class DmpNewVersionDialogEditorModel implements NewVersionDmpPersist {
this.id = item.id;
this.label = item.label;
this.description = item.description;
this.descriptions = item.descriptions.map(d=> d.id);
this.descriptions = item.descriptions?.map(d=> d.id);
this.blueprintId = item.blueprint.id;
this.hash= item.hash;
}