mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-29 04:50:20 +00:00
Fix: "ReferenceError: setIsInitialized is not defined" when logging into web ui.
This commit is contained in:
parent
5e661ea208
commit
22e1a8cc05
1 changed files with 3 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ export const useLogoSelection = () => {
|
|||
* (unused + channel-used, excluding VOD-only logos)
|
||||
*/
|
||||
export const useChannelLogoSelection = () => {
|
||||
const [isInitialized, setIsInitialized] = useState(false);
|
||||
const channelLogos = useLogosStore((s) => s.channelLogos);
|
||||
const hasLoadedChannelLogos = useLogosStore((s) => s.hasLoadedChannelLogos);
|
||||
const backgroundLoading = useLogosStore((s) => s.backgroundLoading);
|
||||
|
|
@ -56,7 +57,7 @@ export const useChannelLogoSelection = () => {
|
|||
return;
|
||||
}
|
||||
|
||||
if (hasLoadedChannelLogos && hasLogos) {
|
||||
if ((hasLoadedChannelLogos && hasLogos) || isInitialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -71,6 +72,7 @@ export const useChannelLogoSelection = () => {
|
|||
hasLoadedChannelLogos,
|
||||
hasLogos,
|
||||
fetchChannelAssignableLogos,
|
||||
isInitialized,
|
||||
]);
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue