Enhancement: Only fetch playlists and channel profiles after successful m3u refresh not every m3u_refresh status update. This should reduce network traffice and efficiency.

This may fix #327
This commit is contained in:
SergeantPanda 2025-10-07 10:02:26 -05:00
parent da245c409a
commit 8794156767

View file

@ -276,11 +276,11 @@ export const WebsocketProvider = ({ children }) => {
'M3U refresh completed successfully:',
updateData
);
fetchPlaylists(); // Refresh playlists to ensure UI is up-to-date
fetchChannelProfiles(); // Ensure channel profiles are updated
}
updatePlaylist(updateData);
fetchPlaylists(); // Refresh playlists to ensure UI is up-to-date
fetchChannelProfiles(); // Ensure channel profiles are updated
} else {
// Playlist not in store yet - this happens when backend sends websocket
// updates immediately after creating the playlist, before the API response