Fetch channel profiles on successful m3u refresh.

This commit is contained in:
SergeantPanda 2025-07-27 19:27:50 -05:00
parent 7313cafa1c
commit 491b0cea29

View file

@ -219,6 +219,7 @@ export const WebsocketProvider = ({ children }) => {
updatePlaylist(updateData);
fetchPlaylists(); // Refresh playlists to ensure UI is up-to-date
fetchChannelProfiles(); // Ensure channel profiles are updated
} else {
// Log when playlist can't be found for debugging purposes
console.warn(
@ -499,6 +500,7 @@ export const WebsocketProvider = ({ children }) => {
const fetchEPGData = useEPGsStore((s) => s.fetchEPGData);
const fetchEPGs = useEPGsStore((s) => s.fetchEPGs);
const fetchLogos = useChannelsStore((s) => s.fetchLogos);
const fetchChannelProfiles = useChannelsStore((s) => s.fetchChannelProfiles);
const ret = useMemo(() => {
return [isReady, ws.current?.send.bind(ws.current), val];