10 lines
297 B
JavaScript
10 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;
|
||
|
};
|