Initial implementation of Import page, project cleanup
This commit is contained in:
@ -46,6 +46,7 @@ const { mutate: reorderTracks } = useMutation({
|
||||
return { previousTracks };
|
||||
},
|
||||
onError: (err, { playlistId }, context) => {
|
||||
console.log(err)
|
||||
if (context?.previousTracks) {
|
||||
queryClient.setQueryData(getGetPlaylistTracksQueryKey(playlistId), context.previousTracks);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user