Merge remote-tracking branch 'origin/main' into CST-4506_item_embargo

This commit is contained in:
Giuseppe Digilio
2021-12-22 15:28:58 +01:00
153 changed files with 16482 additions and 14487 deletions

View File

@@ -243,12 +243,12 @@ export class SubmissionSectionUploadFileEditComponent implements OnInit {
const endDateControl: FormControl = control.parent.get('endDate') as FormControl;
// Clear previous state
startDateControl.markAsUntouched();
endDateControl.markAsUntouched();
startDateControl?.markAsUntouched();
endDateControl?.markAsUntouched();
startDateControl.setValue(null);
startDateControl?.setValue(null);
control.parent.markAsDirty();
endDateControl.setValue(null);
endDateControl?.setValue(null);
if (showGroups) {
if (accessCondition.hasStartDate) {