fix: field based media_folder (#5095)

This commit is contained in:
Erez Rokah 2021-03-11 14:10:54 +01:00 committed by GitHub
parent 20e89cc5e2
commit c64f8f720c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -852,7 +852,12 @@ export function getMediaAssets({ entry }: { entry: EntryMap }) {
const assets = filesArray
.filter(file => file.get('draft'))
.map(file =>
createAssetProxy({ path: file.get('path'), file: file.get('file'), url: file.get('url') }),
createAssetProxy({
path: file.get('path'),
file: file.get('file'),
url: file.get('url'),
field: file.get('field'),
}),
);
return assets;