12 lines
209 B
JavaScript
12 lines
209 B
JavaScript
|
import _ from 'lodash';
|
||
|
|
||
|
|
||
|
export class ConfigReducer {
|
||
|
reduce(json, state) {
|
||
|
let data = _.get(json, '%APPNAME%', false);
|
||
|
if (data) {
|
||
|
state.inbox = data.inbox;
|
||
|
}
|
||
|
}
|
||
|
}
|