UNPKG

fabric8-planner

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