Describe the bug
When deleting identifier input fields in the submission form, a TypeError is thrown. This issue can be reproduced both in DS9 (DSpace Demo) and in the DSpace Sandbox instance.
Steps to Reproduce:
- Start a new item submission.
- Select a collection, e.g. “1-step Workflow collection”.
- Enter a new ISSN.
- Click “Add more” under Identifiers.
- Click the trash can button to delete the first identifier form input field.
Error message:
TypeError: Cannot read properties of null (reading 'get')
Additional Information:
- Even with more than two identifier input fields, the error can be observed when removing any field (except the last one).
- I was able to reproduce the problem in my local instance. The following line of code appears to be responsible for the error (
this.group.get):
|
if (changes && !this.isRelationship && hasValue(this.group.get(this.model.id))) { |
Describe the bug
When deleting identifier input fields in the submission form, a TypeError is thrown. This issue can be reproduced both in DS9 (DSpace Demo) and in the DSpace Sandbox instance.
Steps to Reproduce:
Error message:
Additional Information:
this.group.get):dspace-angular/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts
Line 306 in dba2d7a