Skip to content

Commit 583bed6

Browse files
abhinavtdonohue
authored andcommitted
129621: Add a not empty check
This check is present in the other event handlers above so adding it here as well. (cherry picked from commit 0b28789)
1 parent 056e923 commit 583bed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/submission/sections/form/section-form-operations.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ export class SectionFormOperationsService {
412412
);
413413
}
414414
}
415-
} else if (!value.hasValue()) {
415+
} else if (isNotEmpty(value) && !value.hasValue()) {
416416
// New value is empty, so dispatch a remove operation
417417
if (this.getArrayIndexFromEvent(event) === 0) {
418418
this.operationsBuilder.remove(pathCombiner.getPath(segmentedPath));

0 commit comments

Comments
 (0)