diff --git a/lib/screens/playlist_page.dart b/lib/screens/playlist_page.dart index e7db2e23b..5b260b2e8 100644 --- a/lib/screens/playlist_page.dart +++ b/lib/screens/playlist_page.dart @@ -63,17 +63,14 @@ class _PlaylistPageState extends State { _isLoading = true; fetch().then((List fetchedList) { if (!mounted) return; - if (fetchedList.isEmpty) { - setState(() { - _isLoading = false; + setState(() { + _isLoading = false; + if (fetchedList.isEmpty) { _hasMore = false; - }); - } else { - setState(() { - _isLoading = false; + } else { _songsList.addAll(fetchedList); - }); - } + } + }); }); }