9 lines
243 B
JavaScript
9 lines
243 B
JavaScript
import * as actions from '../actions';
|
|
import { Map } from 'immutable';
|
|
|
|
export default function allProjects(state = Map(), action) {
|
|
if (action.type === actions.GET_PROJECTS.SUCCESS) {
|
|
return Map(action.payload);
|
|
}
|
|
return state;
|
|
};
|