From 3ac550d71dbb3fcd5072dff5241ce508ce84ea8d Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Mon, 10 Feb 2025 17:35:35 -0600 Subject: [PATCH] actually do the mutation plz --- components/Playlist/component.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }) => {