Skip to content

Commit aac19ac

Browse files
[DSC-2149] fix possible JS error
1 parent 241fb9c commit aac19ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/submission/form/submission-upload-files/submission-upload-files.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class SubmissionUploadFilesComponent implements OnChanges {
136136
Object.keys(sections)
137137
.forEach((sectionId) => {
138138
const sectionData = normalizeSectionData(sections[sectionId]);
139-
const sectionWarning = hasValue(sectionData.files) ? this.parseErrorsForWarning(sectionData.files, errorsList[sectionId]) : [];
139+
const sectionWarning = hasValue(sectionData?.files) ? this.parseErrorsForWarning(sectionData.files, errorsList[sectionId]) : [];
140140
const errorsForErrorNotification = difference(errorsList[sectionId], sectionWarning) as SubmissionSectionError[];
141141
const sectionErrors = errorsList[sectionId];
142142

0 commit comments

Comments
 (0)