my-test123
Version:
A planner front-end for Fabric8.
17 lines • 607 B
JavaScript
import * as WIStateActions from './../actions/work-item-state.actions';
import { initialState } from './../states/work-item-state.state';
export var WorkItemStateReducer = function (state, action) {
if (state === void 0) { state = initialState; }
switch (action.type) {
case WIStateActions.GET_SUCCESS: {
return action.payload[0].attributes.fields['system.state'].type.values;
}
case WIStateActions.GET_ERROR: {
return state;
}
default: {
return state;
}
}
};
//# sourceMappingURL=work-item-state.reducer.js.map