fix: playNext and playPrevious logic
This commit is contained in:
5 files changed
+93
-69
No files matched your search
@@ -18,7 +18,7 @@ const PlayPreviousButton = () => {
|
||||
});
|
||||
const handlePlayNext = useMutation({
|
||||
mutationKey: ["playPreviousButton"],
|
||||
mutationFn: () => playItemFromQueue("previous", user.data?.Id),
|
||||
mutationFn: () => playItemFromQueue("previous", user.data?.Id, api),
|
||||
onError: (error) => [console.error(error)],
|
||||
});
|
||||
const [queueItems, currentItemIndex] = useQueue((state) => [
|
||||
|
||||
Reference in new issue
Block a user