mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: journal number setting dialog.
This commit is contained in:
@@ -12,7 +12,16 @@ const initialState = {
|
||||
export default createReducer(initialState, {
|
||||
[t.SETTING_SET]: (state, action) => {
|
||||
const { options } = action;
|
||||
|
||||
state.data.organization = optionsArrayToMap(options);
|
||||
const _data = {
|
||||
...state.data,
|
||||
};
|
||||
options.forEach((option) => {
|
||||
const { key, group, value } = option;
|
||||
if (!_data[group]) {
|
||||
_data[group] = {};
|
||||
}
|
||||
_data[group][key] = value;
|
||||
});
|
||||
state.data = _data;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user