mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
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:
parent
65d86460cb
commit
645e114a1f
@ -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}`
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user