cleanup + fix
This commit is contained in:
parent
fada49768d
commit
3d95ea6acb
3 changed files with 2 additions and 5 deletions
|
@ -111,7 +111,7 @@ const config = {
|
|||
},
|
||||
actions: {
|
||||
loadSettings ({ dispatch }, data) {
|
||||
const knownKeys = new Set(Object.keys(this.state.config))
|
||||
const knownKeys = new Set(Object.keys(defaultState))
|
||||
const presentKeys = new Set(Object.keys(data))
|
||||
const intersection = new Set()
|
||||
for (let elem of presentKeys) {
|
||||
|
@ -120,7 +120,7 @@ const config = {
|
|||
}
|
||||
}
|
||||
|
||||
Object.keys(intersection).forEach(
|
||||
intersection.forEach(
|
||||
name => dispatch('setOption', { name, value: data[name] })
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue