fix import

This commit is contained in:
casperlamboo 2018-02-14 16:43:21 +01:00
parent ec22dc0cf7
commit 68a36c29e3

View File

@ -210,7 +210,8 @@ function sketcherReducer(state = initialState, action) {
case actions.OPEN_SKETCH: case actions.OPEN_SKETCH:
let first = true; let first = true;
for (const space of action.data.data.spaces) { const { spaces } = action.data;
for (const space of spaces) {
if (first) { if (first) {
if (!state.spaces.world) state = addSpaceActive(state, space.matrix, 'world'); if (!state.spaces.world) state = addSpaceActive(state, space.matrix, 'world');
} else { } else {