Fix using sent email post content as new email editor page template
MAILPOET-5949
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
651e80b8f0
commit
16e4346d07
@ -117,9 +117,18 @@ export function usePreviewTemplates( customEmailContent = '' ) {
|
||||
slug: post.slug,
|
||||
previewContentParsed: parsedPostContent,
|
||||
emailParsed: parsedPostContent,
|
||||
template: post,
|
||||
template: {
|
||||
...post,
|
||||
title: {
|
||||
raw: post?.mailpoet_data?.subject || post.title.raw,
|
||||
rendered:
|
||||
post?.mailpoet_data?.subject || post.title.rendered, // use MailPoet subject as title
|
||||
},
|
||||
mailpoet_email_theme: null,
|
||||
email_theme_css: '',
|
||||
},
|
||||
category: 'recent',
|
||||
};
|
||||
} ),
|
||||
} ) as unknown as TemplatePreview[],
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user