Uploaded image for project: 'BookBrainz'
  1. BookBrainz
  2. BB-353

Editing some author entities return 500 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Visiting https://bookbrainz.org/author/312f9486-5d97-482a-834f-2777c785130f/edit returns a 500 error.
      In the logs:

      ```
      ERROR TypeError: Cannot read property 'id' of undefined
      at author.aliasSet.author.aliasSet.aliases.map (/Users/Lenore/Work/Brainz/BookBrainz/bookbrainz-site/lib/server/routes/entity/author.js:120:23)
      at Array.map (<anonymous>)
      at authorToFormState (/Users/Lenore/Work/Brainz/BookBrainz/bookbrainz-site/lib/server/routes/entity/author.js:116:60)
      at generateEntityProps (/Users/Lenore/Work/Brainz/BookBrainz/bookbrainz-site/lib/server/helpers/entityRouteUtils.js:145:17)
      at router.get (/Users/Lenore/Work/Brainz/BookBrainz/bookbrainz-site/lib/server/routes/entity/author.js:193:112)
      ```

        Attachments

          Activity

            People

            • Assignee:
              panwarabhishek345 Abhishek Panwar
              Reporter:
              mr_monkey Monkey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package