Fix console error "Cannot convert undefined or null to object PlaylistsSubMenu"

This commit is contained in:
Deluan 2021-10-26 14:05:05 -04:00 committed by Joe Stump
parent a0914f565f
commit e543d39ba3
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -78,7 +78,7 @@ const PlaylistsSubMenu = ({ state, setState, sidebarIsOpen, dense }) => {
const myPlaylists = []
const sharedPlaylists = []
if (loaded) {
if (loaded && data) {
const allPlaylists = Object.keys(data).map((id) => data[id])
allPlaylists.forEach((pls) => {