Catch non-arrays on summary numbers

This commit is contained in:
Sam Carlton 2022-05-22 10:43:21 -05:00
parent ad2892772d
commit 2f21fd96b1

View file

@ -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