Skip to content

Commit 08d5640

Browse files
abhinavgithub-actions[bot]
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 3a04ea8 commit 08d5640

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
@@ -403,7 +403,7 @@ export class SectionFormOperationsService {
403403
);
404404
}
405405
}
406-
} else if (!value.hasValue()) {
406+
} else if (isNotEmpty(value) && !value.hasValue()) {
407407
// New value is empty, so dispatch a remove operation
408408
if (this.getArrayIndexFromEvent(event) === 0) {
409409
this.operationsBuilder.remove(pathCombiner.getPath(segmentedPath));

0 commit comments

Comments
 (0)