Skip to content

Commit d43730a

Browse files
authored
Merge pull request #4237 from DSpace/backport-4167-to-dspace-7_x
[Port dspace-7_x] Fix unable to remove data from a submission form field of type "name"
2 parents 1c1b129 + 08d5640 commit d43730a

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)