[835] Auto-save in new Item Submission form breaks the form

Minor fixes and method computeSectionConfiguredMetadata tested
This commit is contained in:
Alessandro Martelli
2020-12-21 19:21:49 +01:00
parent 042d2e71f0
commit 8e77fac638
6 changed files with 29 additions and 6 deletions

View File

@@ -240,7 +240,7 @@ export class SubmissionSectionformComponent extends SectionModelComponent {
const sectionDataToCheck = {};
Object.keys(sectionData).forEach((key) => {
if (this.sectionMetadata.includes(key)) {
if (this.sectionMetadata && this.sectionMetadata.includes(key)) {
sectionDataToCheck[key] = sectionData[key];
}
})