diff --git a/assets/js/src/newsletters/templates.jsx b/assets/js/src/newsletters/templates.jsx index 16e7ee536d..867255ac62 100644 --- a/assets/js/src/newsletters/templates.jsx +++ b/assets/js/src/newsletters/templates.jsx @@ -80,7 +80,7 @@ class NewsletterTemplates extends React.Component { name: MailPoet.I18n.t('mailpoetGuideTemplateTitle'), categories: '["welcome", "notification", "standard", "woocommerce"]', - readonly: '1', + readonly: true, }, ]; } @@ -129,7 +129,7 @@ class NewsletterTemplates extends React.Component { sortTemplates() { Object.keys(this.templates).forEach((category) => { this.templates[category].sort((a, b) => { - if (parseInt(a.id, 10) < parseInt(b.id, 10)) { + if (a.id < b.id) { return 1; } return -1;