EditAssetDialog: Create cropped image in the same folder as the original

This commit is contained in:
Gustav Hansen 2022-12-06 12:13:32 +01:00
parent a19579634c
commit eabf3ebc0e

View File

@ -123,7 +123,7 @@ export const PreviewBox = ({
const nextAsset = { ...asset, width, height };
const file = await produceFile(nextAsset.name, nextAsset.mime, nextAsset.updatedAt);
await upload({ name: file.name, rawFile: file });
await upload({ name: file.name, rawFile: file }, asset.folder?.id);
trackUsage('didCropFile', { duplicatedFile: true, location: trackedLocation });