mirror of
https://github.com/Jellify-Music/App.git
synced 2026-02-21 03:08:38 -06:00
seems like it's only when we are moving the track to the first index
This commit is contained in:
@@ -69,6 +69,9 @@ export default function Playlist({
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: [QueryKeys.ItemTracks, playlist.Id]
|
||||
})
|
||||
},
|
||||
onError: () => {
|
||||
trigger("notificationError");
|
||||
}
|
||||
});
|
||||
|
||||
@@ -107,7 +110,7 @@ export default function Playlist({
|
||||
useReorderPlaylist.mutate({
|
||||
playlist,
|
||||
track: data[to],
|
||||
to
|
||||
to: to == 0 ? -1 : to
|
||||
});
|
||||
}}
|
||||
refreshing={isPending}
|
||||
|
||||
Reference in New Issue
Block a user