fix: media files when duplicating entry (#3507)

This commit is contained in:
Bartholomew 2020-03-31 12:58:30 +01:00 committed by GitHub
parent b680389392
commit 970529570b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),
}),
}; };
} }