feat: notifications page

This commit is contained in:
Luis Félix 2020-01-21 13:13:40 +00:00 committed by Josh Harvey
parent 2b71c08444
commit b6e7d98b72
25 changed files with 2615 additions and 198 deletions

View file

@ -11,7 +11,11 @@ low(adapter).then(it => {
function saveConfig (config) {
const currentState = db.getState()
const newState = _.merge(currentState, config)
const newState = _.mergeWith((objValue, srcValue) => {
if (_.isArray(objValue)) {
return srcValue
}
}, currentState, config)
db.setState(newState)
return db.write()