removing workspace from Redux
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { CHANGE_WORKSPACE, NEW_CODE, NEW_WORKSPACE, CREATE_BLOCK, MOVE_BLOCK, CHANGE_BLOCK, DELETE_BLOCK, CLEAR_STATS } from '../actions/types';
|
||||
import { CHANGE_WORKSPACE, NEW_CODE, CREATE_BLOCK, MOVE_BLOCK, CHANGE_BLOCK, DELETE_BLOCK, CLEAR_STATS } from '../actions/types';
|
||||
|
||||
|
||||
const initialState = {
|
||||
@@ -6,7 +6,6 @@ const initialState = {
|
||||
arduino: '',
|
||||
xml: ''
|
||||
},
|
||||
workspace: null,
|
||||
stats: {
|
||||
create: 0,
|
||||
change: 0,
|
||||
@@ -28,11 +27,6 @@ export default function(state = initialState, action){
|
||||
...state,
|
||||
change: state.change += 1
|
||||
};
|
||||
case NEW_WORKSPACE:
|
||||
return {
|
||||
...state,
|
||||
workspace: action.payload
|
||||
};
|
||||
case CREATE_BLOCK:
|
||||
case MOVE_BLOCK:
|
||||
case CHANGE_BLOCK:
|
||||
|
||||
Reference in New Issue
Block a user