129621: Add a not empty check

This check is present in the other event handlers above so adding it here as well.
This commit is contained in:
abhinav
2025-03-20 11:27:50 +01:00
parent 70e6e515a2
commit 0b28789e4f

View File

@@ -412,7 +412,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));