mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
chore(upload)
This commit is contained in:
parent
726d16df03
commit
02e3d81293
@ -27,7 +27,6 @@ export const AssetCard = ({ asset, isSelected, onSelect, onEdit, onRemove, size,
|
|||||||
onRemove: onRemove ? () => onRemove(asset) : undefined,
|
onRemove: onRemove ? () => onRemove(asset) : undefined,
|
||||||
selected: isSelected,
|
selected: isSelected,
|
||||||
size,
|
size,
|
||||||
updatedAt: asset.updatedAt,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (asset.mime.includes(AssetType.Video)) {
|
if (asset.mime.includes(AssetType.Video)) {
|
||||||
@ -42,6 +41,7 @@ export const AssetCard = ({ asset, isSelected, onSelect, onEdit, onRemove, size,
|
|||||||
height={asset.height}
|
height={asset.height}
|
||||||
thumbnail={prefixFileUrlWithBackendUrl(asset?.formats?.thumbnail?.url || asset.url)}
|
thumbnail={prefixFileUrlWithBackendUrl(asset?.formats?.thumbnail?.url || asset.url)}
|
||||||
width={asset.width}
|
width={asset.width}
|
||||||
|
updatedAt={asset.updatedAt}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user