Skip to content

Commit d91307a

Browse files
Merge branch 'w2p-129946_enforce-non-repeatable-fields-in-submission-forms-7.6' into w2p-129946_enforce-non-repeatable-fields-in-submission-forms-main
2 parents 3b95c6e + de7587e commit d91307a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/submission/sections/form/section-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export class SubmissionSectionFormComponent extends SectionModelComponent {
298298
* @private
299299
*/
300300
private inCurrentSubmissionScope(field: string): boolean {
301-
if (!this.sectionMetadata.includes(field)) {
301+
if (isNotEmpty(this.sectionMetadata) && !this.sectionMetadata.includes(field)) {
302302
return false;
303303
}
304304
const scope = this.formConfig?.rows.find((row: FormRowModel) => {

0 commit comments

Comments
 (0)