mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 20:40:15 +02:00
add folder browsing support (#315)
This commit is contained in:
@@ -245,6 +245,11 @@ export const sortSongsByFetchedOrder = (
|
||||
fetchedIds: string[],
|
||||
itemType: LibraryItem,
|
||||
): Song[] => {
|
||||
// For folders, songs are already in the correct order
|
||||
if (itemType === LibraryItem.FOLDER) {
|
||||
return songs;
|
||||
}
|
||||
|
||||
// Group songs by the fetched ID they belong to
|
||||
const songsByFetchedId = new Map<string, Song[]>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user