fix(store): Restore drive object validity check

This commit is contained in:
Jonas Hermsmeier 2018-07-24 23:59:02 +02:00 committed by Alexis Svinartchouk
parent c50553fbf6
commit b270d819a8

View File

@ -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}`
})