Fixes bug on new Dataset Description button. (Issue #177)
This commit is contained in:
parent
27ce739382
commit
c4994843c8
|
@ -429,11 +429,19 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
|||
}
|
||||
|
||||
hasReversableStatus(): boolean {
|
||||
return (this.formGroup.get('dmp').value.status == DmpStatus.Draft && this.formGroup.get('status').value == DatasetStatus.Finalized);
|
||||
if (this.formGroup.get('dmp').value) {
|
||||
return (this.formGroup.get('dmp').value.status == DmpStatus.Draft && this.formGroup.get('status').value == DatasetStatus.Finalized);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
hasNotReversableStatus(): boolean {
|
||||
return (this.formGroup.get('dmp').value.status == DmpStatus.Finalized && this.formGroup.get('status').value == DatasetStatus.Finalized);
|
||||
if (this.formGroup.get('dmp').value) {
|
||||
return (this.formGroup.get('dmp').value.status == DmpStatus.Finalized && this.formGroup.get('status').value == DatasetStatus.Finalized);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
reverse() {
|
||||
|
|
Loading…
Reference in New Issue