diff --git a/components/Playlist/component.tsx b/components/Playlist/component.tsx index 606aeee6..16cc4386 100644 --- a/components/Playlist/component.tsx +++ b/components/Playlist/component.tsx @@ -116,7 +116,10 @@ export default function Playlist({ console.debug(`Moving playlist item from ${from} to ${to}`); setPlaylistTracks(data); - useUpdatePlaylist + useUpdatePlaylist.mutate({ + playlist, + tracks: data + }); }} refreshing={isPending} renderItem={({ item: track, getIndex, drag }) => {