mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix missing images on reload issue
- Mainly an issue for commercial due to incomplete metadata handling
This commit is contained in:
parent
fe8b5193de
commit
2848c8397c
@ -60,8 +60,8 @@ const CurrentImagePreview = () => {
|
||||
<Image
|
||||
onDragStart={handleDragStart}
|
||||
src={shouldHidePreview ? undefined : getUrl(image.url)}
|
||||
width={image.metadata.width}
|
||||
height={image.metadata.height}
|
||||
width={image.metadata.width || 'auto'}
|
||||
height={image.metadata.height || 'auto'}
|
||||
fallback={shouldHidePreview ? <CurrentImageHidden /> : undefined}
|
||||
sx={{
|
||||
objectFit: 'contain',
|
||||
|
Loading…
Reference in New Issue
Block a user