pre select all descriptions on dmp-clone and dmp-new-versions

This commit is contained in:
Sofia Papacharalampous 2024-05-13 11:53:58 +03:00
parent a8a1e77138
commit 0f1b6ea4fb
2 changed files with 2 additions and 0 deletions

View File

@ -21,6 +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);
}
return this;
}

View File

@ -23,6 +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.blueprintId = item.blueprint.id;
this.hash= item.hash;
}