fix open sketch

This commit is contained in:
casperlamboo 2018-02-15 12:32:45 +01:00
parent 9996728f9c
commit b9ed59c8d9

View File

@ -210,7 +210,7 @@ function sketcherReducer(state = initialState, action) {
case actions.OPEN_SKETCH: case actions.OPEN_SKETCH:
let first = true; let first = true;
const { spaces } = action.data; const { spaces } = action.data.data;
for (const space of spaces) { 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');