From 68a36c29e36f788443add202b6e7f760fdb29ad6 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Wed, 14 Feb 2018 16:43:21 +0100 Subject: [PATCH] fix import --- src/reducer/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reducer/index.js b/src/reducer/index.js index 3330090..fc9242a 100644 --- a/src/reducer/index.js +++ b/src/reducer/index.js @@ -210,7 +210,8 @@ function sketcherReducer(state = initialState, action) { case actions.OPEN_SKETCH: let first = true; - for (const space of action.data.data.spaces) { + const { spaces } = action.data; + for (const space of spaces) { if (first) { if (!state.spaces.world) state = addSpaceActive(state, space.matrix, 'world'); } else {