Fix WooCommerce templates not selected when creating WooCommerce email
[MAILPOET-1698]
This commit is contained in:
@@ -147,6 +147,11 @@ class NewsletterTemplates extends React.Component {
|
|||||||
emailType = response.data.type;
|
emailType = response.data.type;
|
||||||
if (_.findWhere(templatesCategories, { name: response.data.type })) {
|
if (_.findWhere(templatesCategories, { name: response.data.type })) {
|
||||||
selectedTab = response.data.type;
|
selectedTab = response.data.type;
|
||||||
|
} else if (
|
||||||
|
response.data.type === 'automatic'
|
||||||
|
&& _.findWhere(templatesCategories, { name: response.data.options.group })
|
||||||
|
) {
|
||||||
|
selectedTab = response.data.options.group;
|
||||||
}
|
}
|
||||||
}).fail((response) => {
|
}).fail((response) => {
|
||||||
if (response.errors.length > 0) {
|
if (response.errors.length > 0) {
|
||||||
|
Reference in New Issue
Block a user