mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 23:55:16 +00:00
remove console logs
This commit is contained in:
1 parent
2cc44ba616
commit
c5a14c4aa1
1 file changed
-3
-3
@@ -27,18 +27,15 @@ const OutputThumbnailImage: React.FC<OutputThumbnailImageProps> = ({
|
||||
img.src = thumbSrc;
|
||||
img.onload = () => {
|
||||
if (isMounted) {
|
||||
console.log("Thumbnail loaded successfully");
|
||||
setThumbnailSrc(thumbSrc);
|
||||
setIsLoading(false);
|
||||
}
|
||||
};
|
||||
img.onerror = () => {
|
||||
if (isMounted && attempts < maxAttempts) {
|
||||
console.log(`Attempt ${attempts + 1} failed, retrying...`);
|
||||
setTimeout(checkImage, 1000);
|
||||
attempts += 1;
|
||||
} else {
|
||||
console.log("Max attempts reached or component unmounted");
|
||||
setIsLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user