lml-main
Version:
This is now a mono repository published into many standalone packages.
23 lines • 699 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var Actions = require("../actions");
var initialState = {
byId: {},
};
exports.jobFlowReducer = function (state, action) {
if (state === void 0) { state = initialState; }
switch (action.type) {
case Actions.SET_JOB_FLOW: {
return setJobFlow(state, action);
}
default: {
return state;
}
}
};
var setJobFlow = function (state, action) {
return (tslib_1.__assign({}, state, { byId: tslib_1.__assign({}, state.byId, (_a = {}, _a[action.refId] = action.jobFlow, _a)) }));
var _a;
};
//# sourceMappingURL=flow.js.map