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); }