Skip to content

Uncaught TypeError: can't access property "full_artists", e.track is null #594

@connorjburton

Description

@connorjburton

Describe the bug

Loading homepage gives me this error in console

Uncaught TypeError: can't access property "full_artists", e.track is null

Expected behavior

Should not error and should show homepage

Additional context

Unfortunately the code is minified, but here is the beautified minified code that is causing the error

          if (
            j[5] === Symbol.for('react.memo_cache_sentinel') ? (n = (0, r.jsx) (sf, {
            }), j[5] = n) : n = j[5],
            j[6] === Symbol.for('react.memo_cache_sentinel') ? (s = (0, r.jsx) (sH, {
            }), j[6] = s) : s = j[6],
            j[7] !== A ||
            j[8] !== C
          ) {
            let e;
            j[10] !== C ? (
              e = (e, t) => (0, r.jsx) (
                sN,
                {
                  index: t,
                  children: (0, r.jsx) (
                    sC,
                    {
                      index: t,
                      onRightClick: C,
                      children: (0, r.jsx) (
                        sZ,
                        {
                          listenedAt: new Date(e.played_at),
                          artists: e.track.full_artists,
                          album: e.track.full_album,
                          track: e.track
                        }
                      )
                    }
                  )
                },
                e.played_at
              ),
              j[10] = C,
              j[11] = e
            ) : e = j[11],
            i = A.map(e),
            j[7] = A,
            j[8] = C,
            j[9] = i
          } else i = j[9];

Screenshots
N/A

Shared link
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions