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
09743cfb2b
commit
5dedb797a6
|
@ -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