fix: field based media_folder (#5095)
This commit is contained in:
parent
20e89cc5e2
commit
c64f8f720c
@ -852,7 +852,12 @@ export function getMediaAssets({ entry }: { entry: EntryMap }) {
|
|||||||
const assets = filesArray
|
const assets = filesArray
|
||||||
.filter(file => file.get('draft'))
|
.filter(file => file.get('draft'))
|
||||||
.map(file =>
|
.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;
|
return assets;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user