feat: notifications page
This commit is contained in:
parent
2b71c08444
commit
b6e7d98b72
25 changed files with 2615 additions and 198 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue