bart-tile/dist/js/reducers/initial.js

12 lines
208 B
JavaScript
Raw Permalink Normal View History

2020-05-10 04:24:46 -07:00
import _ from 'lodash';
export class InitialReducer {
reduce(json, state) {
let data = _.get(json, 'initial', false);
if (data) {
state.inbox = data.inbox;
}
}
}