forked from hazza/dspace-angular
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 0b28789e4f
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
3a04ea8f79
commit
08d56407ff
@@ -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));
|
||||
|
Reference in New Issue
Block a user