diff --git a/assets/js/src/newsletters/templates.jsx b/assets/js/src/newsletters/templates.jsx index d8bb0959e6..d55e7985c7 100644 --- a/assets/js/src/newsletters/templates.jsx +++ b/assets/js/src/newsletters/templates.jsx @@ -34,6 +34,18 @@ define( action: 'getAll', }).done(function(response) { if(this.isMounted()) { + + if(response.length === 0) { + response = [ + { + name: + "MailPoet's Guide", + description: + "This is the standard template that comes with MailPoet.", + readonly: true + } + ] + } this.setState({ templates: response, loading: false @@ -82,6 +94,17 @@ define( }, render: function() { var templates = this.state.templates.map(function(template, index) { + var deleteLink = ( +