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

Editing some author entities return 500 error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • None

      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)
      ```

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

              Created:
              Updated:
              Resolved:

                Version Package