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''; return'';
}, },
snip: (text) => { snip: (text) => {
if(text.length > 155){ if(text && text.length > 155){
return text.substring(0, 155) + '...'; return text.substring(0, 155) + '...';
} }
return text; return text;

View File

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