diff --git a/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/index.js b/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/index.js index e72835651a..b26f159e28 100644 --- a/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/index.js +++ b/packages/core/upload/admin/src/components/EditAssetDialog/PreviewBox/index.js @@ -88,7 +88,7 @@ export const PreviewBox = ({ }, [isCropImageReady, hasCropIntent, onCropStart, crop]); const handleCropping = async () => { - const nextAsset = { ...asset, width, height }; + const nextAsset = { ...asset, width, height, folder: asset.folder?.id }; const file = await produceFile(nextAsset.name, nextAsset.mime, nextAsset.updatedAt); // Making sure that when persisting the new asset, the URL changes with width and height