diff --git a/helpers/get-list-summary-numbers.js b/helpers/get-list-summary-numbers.js index 444244b..7e545e1 100644 --- a/helpers/get-list-summary-numbers.js +++ b/helpers/get-list-summary-numbers.js @@ -1,6 +1,9 @@ import statuses from '~/helpers/statuses' export default function ( appList ) { + if ( !Array.isArray( appList ) ) { + throw new Error(`List must be an array but is ${typeof appList}`) + } const totalApps = appList.length