mirror of
https://github.com/koel/koel
synced 2025-02-17 13:58:28 +00:00
fix: drag and drop playlists into folders
This commit is contained in:
parent
7cd1ea0444
commit
a11eaeb809
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue