fix: drag and drop playlists into folders

This commit is contained in:
Phan An 2024-03-26 11:58:52 +01:00
parent 7cd1ea0444
commit a11eaeb809

View file

@ -107,8 +107,8 @@ export const useDroppable = (acceptedTypes: DraggableType[]) => {
try {
switch (getDragType(event)) {
case 'playlist':
return playlistStore
.byId(event.dataTransfer!.getData('application/x-koel.playlist')) as T | undefined
const id = String(JSON.parse(event.dataTransfer!.getData('application/x-koel.playlist')))
return (playlistStore.byId(id)) as T | undefined
default:
return
}