Skip to content

Commit 1addfc6

Browse files
136580: Fix change-detection to detect authority changes
1 parent e4dc497 commit 1addfc6

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
@@ -254,7 +254,7 @@ export class SubmissionSectionFormComponent extends SectionModelComponent {
254254
.forEach((key) => {
255255
diffObj[key].forEach((value) => {
256256
// the findIndex extra check excludes values already present in the form but in different positions
257-
if (value.hasOwnProperty('value') && findIndex(this.formData[key], { value: value.value }) < 0) {
257+
if (!value.hasOwnProperty('value') || findIndex(this.formData[key], { value: value.value }) < 0) {
258258
diffResult.push(value);
259259
}
260260
});

0 commit comments

Comments
 (0)