mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 20:13:07 +00:00
[CST-4879] TypeError fixed
This commit is contained in:
@@ -243,12 +243,12 @@ export class SubmissionSectionUploadFileEditComponent implements OnInit {
|
|||||||
const endDateControl: FormControl = control.parent.get('endDate') as FormControl;
|
const endDateControl: FormControl = control.parent.get('endDate') as FormControl;
|
||||||
|
|
||||||
// Clear previous state
|
// Clear previous state
|
||||||
startDateControl.markAsUntouched();
|
startDateControl?.markAsUntouched();
|
||||||
endDateControl.markAsUntouched();
|
endDateControl?.markAsUntouched();
|
||||||
|
|
||||||
startDateControl.setValue(null);
|
startDateControl?.setValue(null);
|
||||||
control.parent.markAsDirty();
|
control.parent.markAsDirty();
|
||||||
endDateControl.setValue(null);
|
endDateControl?.setValue(null);
|
||||||
|
|
||||||
if (showGroups) {
|
if (showGroups) {
|
||||||
if (accessCondition.hasStartDate) {
|
if (accessCondition.hasStartDate) {
|
||||||
|
Reference in New Issue
Block a user