-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
When attempting to manually add a listen for a standalone recording there is an error.
Steps to reproduce:
- Go to your profile dashboard and open the "Add listen" menu
- Choose "manual addition" and paste the URL of a standalone recording.
For example: https://musicbrainz.org/recording/f687b0ad-6bab-4207-a549-ac671d804296
Expected outcome
The recording is inserted as a listen.
Actual outcome:
An error occurs and no listen is added.
Error details:
Page
An error occured Cannot read properties of undefined (reading 'title')
Browser console
instrument.js:108 TypeError: Cannot read properties of undefined (reading 'title') at Q (AddListenModal.tsx:38:40) at AddSingleListen.tsx:81:28 at Array.map (<anonymous>) at L (AddSingleListen.tsx:80:32) at Si (react-dom.production.min.js:167:137) at Cs (react-dom.production.min.js:197:258) at ku (react-dom.production.min.js:292:88) at bc (react-dom.production.min.js:280:389) at gc (react-dom.production.min.js:280:320) at vc (react-dom.production.min.js:280:180) at oc (react-dom.production.min.js:271:88) at ac (react-dom.production.min.js:268:429) at x (scheduler.production.min.js:13:203) at MessagePort.R (scheduler.production.min.js:14:128) (anonymous) @ instrument.js:108 ds @ react-dom.production.min.js:189 o.componentDidCatch.n.callback @ react-dom.production.min.js:190 Fo @ react-dom.production.min.js:144 _u @ react-dom.production.min.js:261 bu @ react-dom.production.min.js:260 yu @ react-dom.production.min.js:259 (anonymous) @ react-dom.production.min.js:283 wc @ react-dom.production.min.js:281 ac @ react-dom.production.min.js:270 x @ scheduler.production.min.js:13 R @ scheduler.production.min.js:14 Show 12 more frames Show less instrument.js:108 React Router caught the following error during render TypeError: Cannot read properties of undefined (reading 'title') at Q (AddListenModal.tsx:38:40) at AddSingleListen.tsx:81:28 at Array.map (<anonymous>) at L (AddSingleListen.tsx:80:32) at Si (react-dom.production.min.js:167:137) at Cs (react-dom.production.min.js:197:258) at ku (react-dom.production.min.js:292:88) at bc (react-dom.production.min.js:280:389) at gc (react-dom.production.min.js:280:320) at vc (react-dom.production.min.js:280:180) at oc (react-dom.production.min.js:271:88) at ac (react-dom.production.min.js:268:429) at x (scheduler.production.min.js:13:203) at MessagePort.R (scheduler.production.min.js:14:128) {componentStack: '\n at L (https://listenbrainz.org/static/dist/92…/dist/indexPage.e79639e026092d04ba10.js:2:238644)'} (anonymous) @ instrument.js:108 componentDidCatch @ index.js:485 o.componentDidCatch.n.callback @ react-dom.production.min.js:190 Fo @ react-dom.production.min.js:144 _u @ react-dom.production.min.js:261 bu @ react-dom.production.min.js:260 yu @ react-dom.production.min.js:259 (anonymous) @ react-dom.production.min.js:283 wc @ react-dom.production.min.js:281 ac @ react-dom.production.min.js:270 x @ scheduler.production.min.js:13 R @ scheduler.production.min.js:14 Show 12 more frames Show less
See code changes in pull request #2943 submitted by anshg1214.