lml-main
Version:
This is now a mono repository published into many standalone packages.
14 lines • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var reducers_1 = require("../../root/reducers");
var reducers_2 = require("../reducers");
exports.getAllocationDataState = function (state) {
return state[reducers_1.API_REDUCER_KEY][reducers_2.ALLOCATION_API_REDUCER_KEY].data;
};
// export const getAllocationBatchById =
// (state: RootState, id: string): AllocationGroupModel | null =>
// getAllocationDataState(state).byId[id] || null
exports.getAllocationByJobId = function (state, id) {
return exports.getAllocationDataState(state).byJobId[id] || null;
};
//# sourceMappingURL=data.js.map