Skip to content

Commit 7269f6c

Browse files
authored
Merge pull request #4236 from DSpace/backport-4167-to-main
[Port main] Fix unable to remove data from a submission form field of type "name"
2 parents 056e923 + 583bed6 commit 7269f6c

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)