fix(payload, ui): unable to save animated file types with undefined image sizes (#6757)
## Description V2 PR [here](https://github.com/payloadcms/payload/pull/6733) Additionally fixes issue with image thumbnails not updating properly until page refresh. Image thumbnails properly update on document save now. - [x] I have read and understand the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository. ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) ## Checklist: - [x] I have added tests that prove my fix is effective or that my feature works - [x] Existing test suite passes locally with my changes
This commit is contained in:
@@ -91,7 +91,7 @@ describe('Upload', () => {
|
||||
await uploadImage()
|
||||
await expect(page.locator('.file-field .file-details img')).toHaveAttribute(
|
||||
'src',
|
||||
'/api/uploads/file/payload-1.jpg',
|
||||
/\/api\/uploads\/file\/payload-1\.jpg(\?.*)?$/,
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user