From 618c5e9efdb777d1b65b1af4ce91bcb715e493b2 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Thu, 6 Feb 2025 10:24:39 -0600 Subject: [PATCH] set playlist tracks state on reorder --- README.md | 2 +- components/Playlist/component.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1352e8da..b4674f29 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ![Jellify App Icon](assets/icon_dark_60pt_3x.png) -# Jellify +# Jellify jellify (verb) - to make gelatinous diff --git a/components/Playlist/component.tsx b/components/Playlist/component.tsx index af63fabf..1297bcfa 100644 --- a/components/Playlist/component.tsx +++ b/components/Playlist/component.tsx @@ -81,6 +81,7 @@ export default function Playlist({ )} numColumns={1} onDragEnd={({ data, from, to }) => { + setPlaylistTracks(data); reorderPlaylist(playlist.Id!, data[to].Id!, to) }} refreshing={isPending}