From 4243bb8b614691675e28df8594b333d908ce5474 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 23 Nov 2017 16:07:54 +0100 Subject: [PATCH] fix importing --- src/components/App.js | 1 + src/reducer/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/App.js b/src/components/App.js index be91d83..6337c81 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -12,6 +12,7 @@ import vlineImageURL from '../../img/vline.png'; import btnUndoImageURL from '../../img/mainmenu/btnUndo.png'; import btnRedoImageURL from '../../img/mainmenu/btnRedo.png'; import InlineIconsLoader from './InlineIconsLoader.js'; +import JSONToSketchData from '../shape/JSONToSketchData.js'; const styles = { container: { diff --git a/src/reducer/index.js b/src/reducer/index.js index e797671..058d92d 100644 --- a/src/reducer/index.js +++ b/src/reducer/index.js @@ -212,7 +212,7 @@ function sketcherReducer(state = initialState, action) { let first = true; for (const space of action.data.data.spaces) { if (first) { - state = addSpaceActive(state, space.matrix, 'world'); + if (!state.spaces.world) state = addSpaceActive(state, space.matrix, 'world'); } else { state = addSpaceActive(state, space.matrix); }