fix(playlist_bar): add null check for playlistId before updating playlist info

This commit is contained in:
Valeri
2025-05-01 12:22:49 +04:00
parent 9c3b860bfd
commit 760bdf4d30

View File

@ -85,7 +85,9 @@ class PlaylistBar extends StatelessWidget {
), ),
), ),
).then((isPlaylistUpdated) { ).then((isPlaylistUpdated) {
if (isPlaylistUpdated != null && isPlaylistUpdated) { if (playlistId != null &&
isPlaylistUpdated != null &&
isPlaylistUpdated) {
getPlaylistInfoForWidget( getPlaylistInfoForWidget(
playlistId, playlistId,
).then((result) => {updatedPlaylist = result}); ).then((result) => {updatedPlaylist = result});