[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

@@ -443,7 +443,7 @@ function getForm(forms, currentState, sectionId) {
* @param notify
* Whether notifications are enabled
*/
function filterErrors(sectionForm: FormState, sectionErrors: SubmissionSectionError[], sectionType: string, notify: boolean): any {
function filterErrors(sectionForm: FormState, sectionErrors: SubmissionSectionError[], sectionType: string, notify: boolean): SubmissionSectionError[] {
if (notify || sectionType !== SectionsType.SubmissionForm) {
return sectionErrors;
}