fix importing

This commit is contained in:
casperlamboo 2017-11-23 16:07:54 +01:00
parent 9226bed73a
commit 4243bb8b61
2 changed files with 2 additions and 1 deletions

View File

@ -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: {

View File

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