diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index 2e75c9efd..81333b63f 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -82,8 +82,9 @@ export class DmpComponent implements OnInit{ label: '', previous:'', version:'', - profileData:'', - profile:'' + profileData:'' + //, + //profile:{} } } @@ -143,9 +144,9 @@ getDmps(){ newDMP(){ console.log(this.dmp, this.dmp.projectsDropDownKey); - debugger; this.dmp.project = {"id" : this.dmp.project}; this.dmp["version"] = 1; + //this.dmp.profile = {}; this.serverService.createDmpForCurrentUser(this.dmp) .subscribe( @@ -158,12 +159,10 @@ newDMP(){ updateDMP(){ console.log(this.dmp, this.dmp.projectsDropDownKey); - //this.http.post('http://someurl', JSON.stringify(this.project)) this.dmp.project = {"id":this.dmp.project}; - - debugger; + this.serverService.updateDmp(this.dmp) .subscribe( response =>{