@deepnoid/canvas 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -149,6 +149,7 @@ const XrayViewer = ({ image, hasZoom, coordinates, onImageLoadError, onImageLoad
|
|
|
149
149
|
catch (error) {
|
|
150
150
|
const errorMessage = error instanceof Error ? error.message : 'Image load failed';
|
|
151
151
|
setImageError(errorMessage);
|
|
152
|
+
imageRef.current = new Image();
|
|
152
153
|
onImageLoadError?.(new Error(errorMessage));
|
|
153
154
|
console.error('Image load failed:', error);
|
|
154
155
|
}
|