Skip to content

Deletion of identifier input field in submission form yields TypeError: Cannot read properties of null (reading 'get') #4736

Description

@saschaszott

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:

  1. Start a new item submission.
  2. Select a collection, e.g. “1-step Workflow collection”.
  3. Enter a new ISSN.
  4. Click “Add more” under Identifiers.
  5. 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))) {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects: 9.xIssue impacts 9.x releasesaffects: mainIssue impacts "main" (latest release).bugcannot reproduceUnable to reproduce at this time, so the ticket either needs more information or needs closingcomponent: submission

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions