diff --git a/src/components/Assets/hooks/useGetImagePreviewUrl.ts b/src/components/Assets/hooks/useGetImagePreviewUrl.ts index 0ac5cea7..d1caee71 100644 --- a/src/components/Assets/hooks/useGetImagePreviewUrl.ts +++ b/src/components/Assets/hooks/useGetImagePreviewUrl.ts @@ -27,6 +27,7 @@ export function useGetImagePreviewUrl(props: { url: string }) { } if (result.status !== 403) { + clearInterval(intrvl); reject(new Error("Unable to fetch image")); } }, 5000);