diff --git a/helpers/searchable-list.js b/helpers/searchable-list.js index 95b3bd7..a630da0 100644 --- a/helpers/searchable-list.js +++ b/helpers/searchable-list.js @@ -43,6 +43,11 @@ export function makeSearchableList ( listSet ) { ]) listSet.forEach( ( searchableItem ) => { + + if ( typeof searchableItem === 'undefined' ) { + throw new Error('searchableItem is undefined') + } + // If this is the first items // then store the keys if ( firstLoop ) {