Fix WooCommerce templates not selected when creating WooCommerce email

[MAILPOET-1698]
This commit is contained in:
Jan Jakeš
2019-01-03 16:09:14 +01:00
parent 2658a32e37
commit d355e36002

View File

@@ -147,6 +147,11 @@ class NewsletterTemplates extends React.Component {
emailType = response.data.type;
if (_.findWhere(templatesCategories, { name: 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) => {
if (response.errors.length > 0) {