mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
fix sidebar playlist handlers (#1318)
This commit is contained in:
@@ -289,7 +289,14 @@ export const PlayerProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
toast.hide(toastId);
|
||||
}
|
||||
|
||||
const sortedSongs = sortSongsByFetchedOrder(songs, id, itemType);
|
||||
let sortedSongs: Song[] = [];
|
||||
|
||||
// Playlists should use the native order of the playlist
|
||||
if (itemType === LibraryItem.PLAYLIST) {
|
||||
sortedSongs = songs;
|
||||
} else {
|
||||
sortedSongs = sortSongsByFetchedOrder(songs, id, itemType);
|
||||
}
|
||||
|
||||
const filters = useSettingsStore.getState().playback.filters;
|
||||
const filteredSongs = filterSongsByPlayerFilters(sortedSongs, filters);
|
||||
|
||||
Reference in New Issue
Block a user