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 09743cfb2b
commit 5dedb797a6
1 changed files with 1 additions and 1 deletions

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