You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Show library of saved tracks if viewing first page
55
46
if(firstPage){
@@ -65,35 +56,34 @@ class PlaylistTable extends React.Component {
65
56
},
66
57
"tracks": {
67
58
"href": "https://api.spotify.com/v1/me/tracks",
68
-
"limit": args[0][0].limit,
69
-
"total": args[0][0].total
59
+
"limit": likedTracksResponse.limit,
60
+
"total": likedTracksResponse.total
70
61
},
71
62
"uri": "spotify:user:"+userId+":saved"
72
63
});
73
64
74
65
// FIXME: Handle unmounting
75
66
this.setState({
76
-
likedSongsLimit: args[0][0].limit,
77
-
likedSongsCount: args[0][0].total
67
+
likedSongsLimit: likedTracksResponse.limit,
68
+
likedSongsCount: likedTracksResponse.total
78
69
})
79
70
}
80
71
81
72
// FIXME: Handle unmounting
82
73
this.setState({
83
74
playlists: playlists,
84
-
playlistCount: response.total,
85
-
nextURL: response.next,
86
-
prevURL: response.previous
75
+
playlistCount: playlistsResponse.total,
76
+
nextURL: playlistsResponse.next,
77
+
prevURL: playlistsResponse.previous
87
78
});
88
79
89
80
$('#playlists').fadeIn();
90
-
$('#subtitle').text((response.offset+1)+'-'+(response.offset+response.items.length)+' of '+response.total+' playlists for '+userId)
91
-
81
+
$('#subtitle').text((playlistsResponse.offset+1)+'-'+(playlistsResponse.offset+playlistsResponse.items.length)+' of '+playlistsResponse.total+' playlists for '+userId)
0 commit comments