Skip to content

Error when edit an Item on the Demo site #4727

@paulo-graca

Description

@paulo-graca

Describe the bug

On the Demo site (DSpace 9.1-SNAPSHOT and dspace-angular 9.2.0-next), when trying to edit an Item, I'm unable to do it so, seeming that the page is loading indefinitely.

Inspecting the result, I'm getting an error:

Image
main.44fb3bf53a3d1a0e.js:1 ERROR TypeError: Cannot read properties of undefined (reading 'id')
    at Object.next (2306.cec134b81f74a0c6.js:1:11551)
    at P.next (main.44fb3bf53a3d1a0e.js:1:2014365)
    at h._next (main.44fb3bf53a3d1a0e.js:1:2014049)
    at h.next (main.44fb3bf53a3d1a0e.js:1:2013744)
    at main.44fb3bf53a3d1a0e.js:1:2027250
    at c._next (main.44fb3bf53a3d1a0e.js:1:2024913)
    at c.next (main.44fb3bf53a3d1a0e.js:1:2013744)
    at subscribe.E (main.44fb3bf53a3d1a0e.js:1:2032705)
    at c._next (main.44fb3bf53a3d1a0e.js:1:2024913)
    at c.next (main.44fb3bf53a3d1a0e.js:1:2013744)
handleError @ main.44fb3bf53a3d1a0e.js:1
next @ main.44fb3bf53a3d1a0e.js:1
...

If I refresh the page, I'm able to edit the Item.

To Reproduce

Steps to reproduce the behavior:

  1. Login as a "Demo Community Administrator"
  2. On "My DSpace" area, pick an Item and Edit it.

Expected behavior

I'm expecting to edit an Item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcannot reproduceUnable to reproduce at this time, so the ticket either needs more information or needs closingneeds triageNew issue needs triage and/or scheduling

    Type

    No type

    Projects

    Status

    ✅ Done / Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions