You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
412 B

const Immutable = require('immutable');
import * as GridActions from '../../actions/board/grid.actions';
const initial = [];
const reducer = (state = initial, action) => {
if (action.type !== GridActions.GRID_ACTION) {
return state;
}
if (action.action === GridActions.UPDATE) {
return Immutable.List(action.values).toArray();
}
return state;
};
export default reducer;