Merge pull request #17455 from strapi/fix/upload-thumbnail-update

This commit is contained in:
Jamie Howard 2023-07-26 12:45:03 +01:00 committed by GitHub
commit cccdae0db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ export const AssetCard = ({ asset, isSelected, onSelect, onEdit, onRemove, size,
height={asset.height}
thumbnail={prefixFileUrlWithBackendUrl(asset?.formats?.thumbnail?.url || asset.url)}
width={asset.width}
updatedAt={asset.updatedAt}
/>
);
}

View File

@ -387,7 +387,7 @@ exports[`MediaLibrary / AssetList snapshots the asset list 1`] = `
alt="strapi-cover_1fabc982ce.png"
aria-hidden="true"
class="c14"
src="http://localhost:1337/uploads/thumbnail_strapi_cover_1fabc982ce_5b43615ed5.png"
src="http://localhost:1337/uploads/thumbnail_strapi_cover_1fabc982ce_5b43615ed5.png?2021-09-14T07:32:50.816Z"
/>
</div>
</div>