seems like it's only when we are moving the track to the first index

This commit is contained in:
Violet Caulfield
2025-02-10 17:29:14 -06:00
parent 8edc9996fa
commit 3282e8039b

View File

@@ -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}