<>
-
+ {isLoadError ? (
+
+ ) : (
+ setIsLoadError(true)}
+ />
+ )}
+
{showCaption && (
@@ -428,7 +456,7 @@ export default function ImageComponent({
maxWidth={maxWidth}
onResizeStart={onResizeStart}
onResizeEnd={onResizeEnd}
- captionsEnabled={captionsEnabled}
+ captionsEnabled={!isLoadError && captionsEnabled}
/>
)}
>