fix: media files when duplicating entry (#3507)
This commit is contained in:
parent
b680389392
commit
970529570b
@ -211,7 +211,10 @@ export function createDraftFromEntry(entry: EntryValue) {
|
|||||||
export function draftDuplicateEntry(entry: EntryMap) {
|
export function draftDuplicateEntry(entry: EntryMap) {
|
||||||
return {
|
return {
|
||||||
type: DRAFT_CREATE_DUPLICATE_FROM_ENTRY,
|
type: DRAFT_CREATE_DUPLICATE_FROM_ENTRY,
|
||||||
payload: createEntry(entry.get('collection'), '', '', { data: entry.get('data') }),
|
payload: createEntry(entry.get('collection'), '', '', {
|
||||||
|
data: entry.get('data'),
|
||||||
|
mediaFiles: entry.get('mediaFiles').toJS(),
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user