lml-main
Version:
This is now a mono repository published into many standalone packages.
21 lines • 671 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var Actions = require("../actions");
exports.initialJobAuditState = {};
exports.jobAuditReducer = function (state, action) {
if (state === void 0) { state = exports.initialJobAuditState; }
switch (action.type) {
case Actions.SET_JOB_AUDIT: {
return setJobAudit(state, action);
}
default: {
return state;
}
}
};
var setJobAudit = function (state, action) {
return (tslib_1.__assign({}, state, (_a = {}, _a[action.refId] = action.audit, _a)));
var _a;
};
//# sourceMappingURL=audit.js.map