Fixes bug on dmp status value on failing action "finalize"

This commit is contained in:
apapachristou 2019-08-22 17:53:25 +03:00
parent 8ad6a8f158
commit 5cd5b96fb3
1 changed files with 4 additions and 1 deletions

View File

@ -251,7 +251,10 @@ export class DmpEditorComponent extends BaseComponent implements OnInit, IBreadC
}
else { this.onCallbackSuccess() }
},
error => this.onCallbackError(error)
error => {
this.formGroup.get('status').setValue(DmpStatus.Draft);
this.onCallbackError(error);
}
);
}