|
@ -262,8 +262,8 @@ const PlaylistView = ({ ...rest }) => { |
|
|
if (isFailedResponse(res)) { |
|
|
if (isFailedResponse(res)) { |
|
|
notifyToast('error', errorMessages(res)[0]); |
|
|
notifyToast('error', errorMessages(res)[0]); |
|
|
} else { |
|
|
} else { |
|
|
queryClient.refetchQueries(['playlist'], { |
|
|
queryClient.setQueryData(['playlist', playlistId], (oldData: any) => { |
|
|
active: true, |
|
|
return { ...oldData, name: editName, comment: editDescription, public: editPublic }; |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|