Fixed SOE breaking the admin

master
Mark Moffat 2020-01-28 17:01:28 +10:30
parent 98a1a0a0c4
commit e9fcbd5a99
2 changed files with 3 additions and 2 deletions

2
app.js
View File

@ -316,7 +316,7 @@ handlebars = handlebars.create({
return'';
},
snip: (text) => {
if(text.length > 155){
if(text && text.length > 155){
return text.substring(0, 155) + '...';
}
return text;

View File

@ -106,6 +106,7 @@
{{else}}
<meta property="twitter:url" content="{{config.baseUrl}}" />
{{/if}}
{{#unless result.productTitle}}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
@ -139,7 +140,7 @@
{{/if}}
}
</script>
{{/unless}}
<!-- SEO data -->
{{~#if config.googleAnalytics}}{{{config.googleAnalytics}}}{{/if}}
{{~#if config.customCss}}<style>{{{config.customCss}}}</style>{{/if}}