forked from hazza/dspace-angular
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"
This commit is contained in:
@@ -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
|
// New value is empty, so dispatch a remove operation
|
||||||
if (this.getArrayIndexFromEvent(event) === 0) {
|
if (this.getArrayIndexFromEvent(event) === 0) {
|
||||||
this.operationsBuilder.remove(pathCombiner.getPath(segmentedPath));
|
this.operationsBuilder.remove(pathCombiner.getPath(segmentedPath));
|
||||||
|
Reference in New Issue
Block a user