fix: media file path (#3166)
This commit is contained in:
parent
6594b9b039
commit
d1179e3999
@ -691,7 +691,12 @@ export class Backend {
|
||||
assetProxies.map(asset => {
|
||||
// update media files path based on entry path
|
||||
const oldPath = asset.path;
|
||||
const newPath = selectMediaFilePath(config, collection, entryDraft.get('entry'), oldPath);
|
||||
const newPath = selectMediaFilePath(
|
||||
config,
|
||||
collection,
|
||||
entryDraft.get('entry').set('path', path),
|
||||
oldPath,
|
||||
);
|
||||
asset.path = newPath;
|
||||
});
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user