From 645e114a1fc7121bc78044a13f702f337a6c579e Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Fri, 7 Sep 2018 12:01:38 +0200 Subject: [PATCH] fix(gui): Allow drives to be objects This fixes an error when plugging usbboot devices. Change-type: patch Signed-off-by: Alexis Svinartchouk --- lib/gui/app/models/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gui/app/models/store.js b/lib/gui/app/models/store.js index 6477b280..4a9f2247 100644 --- a/lib/gui/app/models/store.js +++ b/lib/gui/app/models/store.js @@ -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}` })