This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/reducers/allProjects.js

11 lines
271 B
JavaScript
Raw Normal View History

2016-05-05 13:34:10 +01:00
import * as actions from '../actions';
import { Map } from 'immutable';
export default function allProjects(state = Map(), action) {
console.log(action.type);
if (action.type === actions.GET_PROJECTS.SUCCESS) {
return Map(action.payload);
}
return state;
};