From 08d56407ffb5efd5361e95da9e4636dcb9f7439d Mon Sep 17 00:00:00 2001 From: abhinav Date: Thu, 20 Mar 2025 11:27:50 +0100 Subject: [PATCH] 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 0b28789e4fc638bf8adc26cd0b251ad151913cc2) --- .../submission/sections/form/section-form-operations.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/submission/sections/form/section-form-operations.service.ts b/src/app/submission/sections/form/section-form-operations.service.ts index 778063dd31..2ae5903d6b 100644 --- a/src/app/submission/sections/form/section-form-operations.service.ts +++ b/src/app/submission/sections/form/section-form-operations.service.ts @@ -403,7 +403,7 @@ export class SectionFormOperationsService { ); } } - } else if (!value.hasValue()) { + } else if (isNotEmpty(value) && !value.hasValue()) { // New value is empty, so dispatch a remove operation if (this.getArrayIndexFromEvent(event) === 0) { this.operationsBuilder.remove(pathCombiner.getPath(segmentedPath));