🐛 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 47f3855d4d
commit 439b877744

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);
}
}