mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 18:52:14 +03:00
🐛 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:
parent
47f3855d4d
commit
439b877744
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user