This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/reducers/recentBuilds.js
2016-05-05 14:18:07 +01:00

9 lines
297 B
JavaScript

import * as actions from '../actions';
import { Map } from 'immutable';
export default function recentBuilds(state = Map(), action) {
if (action.type === actions.GET_PROJECT_RECENT_BUILDS.SUCCESS) {
return state.set(action.meta.ident, action.payload); // Not ideal!
}
return state;
};