Bug fix: Fixes bug where adding multiple M3U accounts in a row would only modify the first M3U account that was added unless you refresh the web UI.

This commit is contained in:
SergeantPanda 2025-10-07 09:18:43 -05:00
parent d1aa9fe441
commit 99ad0ecb7b
2 changed files with 6 additions and 3 deletions

View file

@ -199,6 +199,11 @@ const M3U = ({
const closeGroupFilter = () => {
setGroupFilterModalOpen(false);
// After group filter setup for a new account, reset everything
form.reset();
setFile(null);
setPlaylist(null);
onClose();
};
const closeFilter = () => {

View file

@ -355,9 +355,7 @@ const M3UTable = () => {
};
const editPlaylist = async (playlist = null) => {
if (playlist) {
setPlaylist(playlist);
}
setPlaylist(playlist);
setPlaylistModalOpen(true);
};