fix: image meta

This commit is contained in:
2024-01-08 12:23:12 +00:00
parent 84bda4e33d
commit 30b21cfe91
4 changed files with 22 additions and 18 deletions

View File

@ -41,7 +41,7 @@ const ImageElement = ({ url, meta, onMediaClick }: ImageElementProps) => {
style.height = `${Math.min(document.body.clientHeight * 0.8, meta.height * scale)}px`;
}
return style;
}, [imageRef.current, meta]);
}, [imageRef?.current, meta]);
return (
<div