mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
fix(store): Restore drive object validity check
This commit is contained in:
parent
c50553fbf6
commit
b270d819a8
@ -161,8 +161,7 @@ const storeReducer = (state = DEFAULT_STATE, action) => {
|
||||
|
||||
const drives = action.data
|
||||
|
||||
// If (!_.isArray(drives) || !_.every(drives, _.isPlainObject)) {
|
||||
if (!_.isArray(drives)) {
|
||||
if (!_.isArray(drives) || !_.every(drives, _.isPlainObject)) {
|
||||
throw errors.createError({
|
||||
title: `Invalid drives: ${drives}`
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user