Skip to content

Commit acabb5a

Browse files
Merge branch 'w2p-136580_Replace-plaintext-relationship-7.6' into w2p-136580_Replace-plaintext-relationship-main
2 parents 558a11f + 1addfc6 commit acabb5a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ export class SubmissionSectionFormComponent extends SectionModelComponent implem
297297
.forEach((key) => {
298298
diffObj[key].forEach((value) => {
299299
// the findIndex extra check excludes values already present in the form but in different positions
300-
if (value.hasOwnProperty('value') && findIndex(this.formData[key], { value: value.value }) < 0) {
300+
if (!value.hasOwnProperty('value') || findIndex(this.formData[key], { value: value.value }) < 0) {
301301
diffResult.push(value);
302302
}
303303
});

0 commit comments

Comments
 (0)