Skip to content

Commit

Permalink
Fix selection display
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Oct 12, 2024
1 parent 15b75e4 commit 1f50c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/Controllers/DataController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public Response UploadSong([FromForm]YoutubeForm data)
info.Musics.Add(m);

// If album exists we add it to the JSON too
if (hasAlbum && !info.Albums.ContainsKey(album))
if (hasAlbum && !info.Albums.ContainsKey(albumKey))
{
info.Albums.Add(albumKey, new()
{
Expand Down
2 changes: 1 addition & 1 deletion web/src/getMusics.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function updateSongHighlightColor() {
elems[0].classList.remove("current");
}
for (let c of document.getElementsByClassName("song")) {
if (c.dataset.name == sanitize(json.musics[playlist[playlistIndex]].name)) {
if (c.dataset.name == json.musics[playlist[playlistIndex]].name) {
c.classList.add("current");
}
}
Expand Down

0 comments on commit 1f50c5b

Please sign in to comment.