Skip to content

Commit

Permalink
Fix display not resetting after search
Browse files Browse the repository at this point in the history
  • Loading branch information
Xwilarg committed Jun 30, 2024
1 parent 842d7c3 commit e63b512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/getMusics.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ async function musics_initAsync() {
if (currentPlaylist === null) {
displayPlaylists(json.playlists, "playlistlist", filterValue);
} else {
displaySongs(json.musics, "songlist", filterValue, true, true, 15);
displaySongs(json.musics, "songlist", filterValue, true, true, filterValue !== "" ? 15 : 5);
}
});
document.getElementById("filter").value = "";
Expand Down

0 comments on commit e63b512

Please sign in to comment.