fix(ImageObjectPreview): img alt set to null

This commit is contained in:
Aminejv 2022-01-03 13:09:00 +01:00
parent 9c1af09bf3
commit d7280cb480

View File

@ -91,7 +91,7 @@ export default function ImageObjectPreview({
<img
css={STYLES_IMAGE}
src={imageUrl}
alt={`${file.name} preview`}
alt={`${file?.name || file.filename} preview`}
onLoad={handleOnLoaded}
/>
)}