Skip to content

Commit 35ca054

Browse files
fixed the unsorted playlist not showing
1 parent 7993a04 commit 35ca054

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/app/main-playlists/main-playlists.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ export class MainPlaylistsComponent implements OnInit {
6060
}
6161

6262
setupPlaylists() {
63+
console.log(this.config.Playlists);
6364
const customIndex = this.config.Playlists.map(p => p.PlaylistID).indexOf('CustomSongs');
6465
if (customIndex > -1) {
65-
this.customPlaylist = this.config.Playlists.splice(customIndex, 1)[0];
66+
this.customPlaylist = this.config.Playlists[customIndex];
67+
this.config.Playlists.splice(customIndex, 1);
6668
} else {
6769
this.customPlaylist = {
6870
CoverArtFilename: null,

0 commit comments

Comments
 (0)