mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Koenig - Fixed error in {{clean-basic-html}}
when passed null/undefined
no issue - default param was not protecting against null value being passed via helper params
This commit is contained in:
parent
83924194f5
commit
cff6789a35
@ -3,7 +3,7 @@ import {isArray} from '@ember/array';
|
||||
|
||||
export function cleanBasicHtml(html = '') {
|
||||
if (isArray(html)) {
|
||||
html = html[0];
|
||||
html = html[0] || '';
|
||||
}
|
||||
|
||||
let cleanHtml = html
|
||||
|
Loading…
Reference in New Issue
Block a user