mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-30 11:12:36 -04:00
Fix error toast on playlist save
This commit is contained in:
@@ -196,7 +196,7 @@ const PlaylistView = ({ ...rest }) => {
|
||||
if (playlistData.length <= 400 && !recovery) {
|
||||
res = await updatePlaylistSongs(data.id, playlistData);
|
||||
if (isFailedResponse(res)) {
|
||||
notifyToast('error', res.error.message);
|
||||
notifyToast('error', errorMessages(res)[0]);
|
||||
} else {
|
||||
notifyToast('success', `Saved playlist`);
|
||||
await queryClient.refetchQueries(['playlist'], {
|
||||
|
||||
Reference in New Issue
Block a user