bart-tile/dist/js/reducers/initial.js
2020-05-11 23:33:37 -07:00

12 lines
208 B
JavaScript

import _ from 'lodash';
export class InitialReducer {
reduce(json, state) {
let data = _.get(json, 'initial', false);
if (data) {
state.inbox = data.inbox;
}
}
}