1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

Fixed: Loading movie images after placeholder in Safari

Closes #10474
This commit is contained in:
Mark McDowall 2024-09-23 17:44:30 -07:00 committed by Bogdan
parent dc599b6531
commit 7b43c2e345

View File

@ -43,7 +43,7 @@ function MovieImage({
}: MovieImageProps) { }: MovieImageProps) {
const [url, setUrl] = useState<string | null>(null); const [url, setUrl] = useState<string | null>(null);
const [hasError, setHasError] = useState(false); const [hasError, setHasError] = useState(false);
const [isLoaded, setIsLoaded] = useState(false); const [isLoaded, setIsLoaded] = useState(true);
const image = useRef<Image | null>(null); const image = useRef<Image | null>(null);
const handleLoad = useCallback(() => { const handleLoad = useCallback(() => {