i.toLowerCase is not a function crashes album view
See original GitHub issueDescribe the bug Recently i started seeing this error, which crashed the album view for me:
TypeError: i.toLowerCase is not a function
at VM33 app.min.js:1
at Array.sort (<anonymous>)
at Object.t.sortItems (VM33 app.min.js:1)
at t.value (VM33 app.min.js:125)
at t.value (VM33 app.min.js:125)
at Pi (VM33 app.min.js:81)
at Ci (VM33 app.min.js:81)
at Mi (VM33 app.min.js:81)
at Wo (VM33 app.min.js:81)
at Vo (VM33 app.min.js:81)
To Reproduce
Not sure, but it could be a missing field or null
value in the album list. Here’s the list I get back from spotify
https://gist.github.com/MichaelRuhwedel/92003a9208289a281dbcb54819d06e49/raw/fdd0f04553c6acaa061150540d5aaa2085fe2d20/error-response
Environment details:
- Browser: chromium 74.0.3729.108
- Iris version: 3.37.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
TypeError: toLowerCase is not a function in JavaScript
The "toLowerCase is not a function" error occurs when we call the toLowerCase() method on a value that is not a string. To...
Read more >javascript - .toLowerCase not working, replacement function?
The .toLowerCase() function only exists on strings. You can call .toString() on anything in JavaScript to get a string representation.
Read more >"t.toLowerCase is not a function" when try and play a song in a ...
I will be working with @huangworld on this issue. A more precise description would be: Playing this song in the playlist will crash...
Read more >HTML : ReactJS toLowerCase is not a function - YouTube
HTML : ReactJS toLowerCase is not a function [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] HTML : ReactJS toLowerCase is not...
Read more >TypeError: error.toLowerCase is not a function
The "toLowerCase is not a function" error occurs when we call the toLowerCase() method on a value that is not a string.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you try Settings > Reset all settings? I think what’s happened is your sort is set to an invalid value (perhaps due to an earlier version). When sorting albums by artist, running
_store.getState().ui.library_albums_sort
should returnartists.first.name
instead ofartists
.That did the trick…thank you very much for the support!