Fix console error "Cannot convert undefined or null to object PlaylistsSubMenu"
This commit is contained in:
@@ -78,7 +78,7 @@ const PlaylistsSubMenu = ({ state, setState, sidebarIsOpen, dense }) => {
|
|||||||
const myPlaylists = []
|
const myPlaylists = []
|
||||||
const sharedPlaylists = []
|
const sharedPlaylists = []
|
||||||
|
|
||||||
if (loaded) {
|
if (loaded && data) {
|
||||||
const allPlaylists = Object.keys(data).map((id) => data[id])
|
const allPlaylists = Object.keys(data).map((id) => data[id])
|
||||||
|
|
||||||
allPlaylists.forEach((pls) => {
|
allPlaylists.forEach((pls) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user