Merge branch 'bugfix/csrf_refresh' of kilowatt36/freezer into master

This commit is contained in:
exttex 2020-11-01 15:35:17 +00:00 committed by Gogs
commit c8a1bc7221
3 changed files with 11 additions and 5 deletions

View file

@ -750,14 +750,15 @@ class _PlaylistDetailsState extends State<PlaylistDetails> {
if (playlist.tracks.length == 0) {
//Get correct metadata
deezerAPI.playlist(playlist.id)
.catchError((e) => setState(() => _error = true))
.then((Playlist p) {
if (p == null) return;
setState(() {
playlist = p;
});
//Load tracks
_load();
})
.catchError((e) {
setState(() => _error = true);
});
}
@ -803,7 +804,7 @@ class _PlaylistDetailsState extends State<PlaylistDetails> {
),
Container(height: 4.0),
Text(
playlist.user.name,
playlist.user.name??'',
overflow: TextOverflow.ellipsis,
maxLines: 2,
textAlign: TextAlign.center,