Leap: fix double section

Fixes urbit/landscape#504
This commit is contained in:
Liam Fitzgerald 2021-03-08 14:19:53 +10:00
parent 35a1fe12bc
commit fc9212b7ba
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -60,7 +60,7 @@ export default class SettingsStateZusettingsReducer{
getAll(json: any, state: SettingsStateZus) {
const data = _.get(json, 'all');
if(data) {
_.merge(state, data);
_.mergeWith(state, data, (obj, src) => _.isArray(src) ? src : undefined)
}
}