@producteca/producteca-ui-kit 1.76.1 → 1.76.2
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.
|
@@ -67670,6 +67670,9 @@ const Image = ({
|
|
|
67670
67670
|
showBorder = true
|
|
67671
67671
|
}) => {
|
|
67672
67672
|
const [hasError2, setHasError] = useState(false);
|
|
67673
|
+
useEffect(() => {
|
|
67674
|
+
setHasError(false);
|
|
67675
|
+
}, [src]);
|
|
67673
67676
|
const handleImageError = () => {
|
|
67674
67677
|
setHasError(true);
|
|
67675
67678
|
};
|