fix(gui): Allow drives to be objects

This fixes an error when plugging usbboot devices.

Change-type: patch
Signed-off-by: Alexis Svinartchouk <alexis@resin.io>
This commit is contained in:
Alexis Svinartchouk 2018-09-07 12:01:38 +02:00
parent 65d86460cb
commit 645e114a1f

View File

@ -162,7 +162,7 @@ const storeReducer = (state = DEFAULT_STATE, action) => {
const drives = action.data
if (!_.isArray(drives) || !_.every(drives, _.isPlainObject)) {
if (!_.isArray(drives) || !_.every(drives, _.isObject)) {
throw errors.createError({
title: `Invalid drives: ${drives}`
})