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 = '') {
if (isArray(html)) {
html = html[0];
html = html[0] || '';
}
let cleanHtml = html