UNPKG

fabric8-planner

Version:
17 lines 519 B
import { initialState } from '../states/event.state'; import * as EventActions from './../actions/event.action'; export var EventReducer = function (state, action) { if (state === void 0) { state = initialState; } switch (action.type) { case EventActions.GET_SUCCESS: { return action.payload.slice(); } case EventActions.GET_ERROR: { return state; } default: { return state; } } }; //# sourceMappingURL=event.reducer.js.map