cleanup + fix

This commit is contained in:
Henry Jameson 2021-03-08 21:56:20 +02:00
parent fada49768d
commit 3d95ea6acb
3 changed files with 2 additions and 5 deletions

View file

@ -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] })
)
},