🐛 Fixed email design settings not opening

closes https://github.com/TryGhost/Ghost/issues/12459

- Email design settings don't open in some cases when footer html is set as null, specifically on import
- Patches html cleanup to use empty string in case of null footer value
This commit is contained in:
Rish 2020-12-08 13:27:17 +05:30 committed by Rishabh Garg
parent f117191949
commit 426b613dcb
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ export default Component.extend({
/* computed properties -------------------------------------------------- */
cleanHTML: computed('html', function () {
return cleanBasicHtml(this.html);
return cleanBasicHtml(this.html || '');
}),
// merge in named options with any passed in `options` property data-bag
@ -392,7 +392,7 @@ export default Component.extend({
return '';
}
let html = firstParagraph.innerHTML;
let html = firstParagraph.innerHTML || '';
return cleanBasicHtml(html);
}
}