Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case dahsboardActions.FETCH_LATEST_PIPELINES.SUCCESS: {
- const { rows } = action.payload;
- const xAxis = [];
- const yAxis = [];
- rows.forEach(pipeline => {
- const { data, creationDate } = pipeline;
- xAxis.push(moment(creationDate).format("h:mm:ss"));
- yAxis.push(data);
- });
- return { ...state, xAxis, yAxis };
- }
- case dahsboardActions.FETCH_LATEST_PIPELINES_UPDATE.FAIL: {
- return state;
- }
Add Comment
Please, Sign In to add comment