mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-29 04:50:20 +00:00
Move fetchChannelProfiles to initdata
This commit is contained in:
parent
cbbb2a6d59
commit
0a222f27af
2 changed files with 1 additions and 6 deletions
|
|
@ -238,7 +238,6 @@ const ChannelsTable = ({ }) => {
|
|||
const selectedProfileChannels = useChannelsStore(
|
||||
(s) => s.profiles[selectedProfileId]?.channels
|
||||
);
|
||||
const fetchChannelProfiles = useChannelsStore((state) => state.fetchChannelProfiles);
|
||||
|
||||
// store/settings
|
||||
const env_mode = useSettingsStore((s) => s.environment.env_mode);
|
||||
|
|
@ -567,11 +566,6 @@ const ChannelsTable = ({ }) => {
|
|||
setPaginationString(`${startItem} to ${endItem} of ${totalCount}`);
|
||||
}, [data]);
|
||||
|
||||
useEffect(() => {
|
||||
// Fetch channel profiles when the component mounts
|
||||
fetchChannelProfiles();
|
||||
}, []);
|
||||
|
||||
const columns = useMemo(
|
||||
() => [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ const useAuthStore = create((set, get) => ({
|
|||
await Promise.all([
|
||||
useChannelsStore.getState().fetchChannels(),
|
||||
useChannelsStore.getState().fetchChannelGroups(),
|
||||
useChannelsStore.getState().fetchChannelProfiles(),
|
||||
usePlaylistsStore.getState().fetchPlaylists(),
|
||||
useEPGsStore.getState().fetchEPGs(),
|
||||
useEPGsStore.getState().fetchEPGData(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue