0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05: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:
Kevin Ansfield 2018-08-08 13:50:42 +01:00
parent 83924194f5
commit cff6789a35

View file

@ -3,7 +3,7 @@ import {isArray} from '@ember/array';
export function cleanBasicHtml(html = '') { export function cleanBasicHtml(html = '') {
if (isArray(html)) { if (isArray(html)) {
html = html[0]; html = html[0] || '';
} }
let cleanHtml = html let cleanHtml = html