mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Catch non-arrays on summary numbers
This commit is contained in:
parent
ad2892772d
commit
2f21fd96b1
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue