fix invalid option copy
This commit is contained in:
parent
095abb2914
commit
912aa228d1
9 changed files with 42 additions and 58 deletions
|
|
@ -51,17 +51,18 @@ const config = {
|
|||
...Object.fromEntries(
|
||||
instanceDefaultProperties.map((key) => [
|
||||
key,
|
||||
useInstanceStore()[key],
|
||||
useInstanceStore().prefsStorage[key],
|
||||
]),
|
||||
),
|
||||
}
|
||||
},
|
||||
mergedConfig(state) {
|
||||
const instancePrefs = useInstanceStore().prefsStorage
|
||||
console.log(state)
|
||||
const result = Object.fromEntries(
|
||||
Object.entries(defaultState).map(([k, v]) => [
|
||||
k,
|
||||
v ?? instancePrefs[k],
|
||||
Object.keys(defaultState).map((key) => [
|
||||
key,
|
||||
state[key] ?? instancePrefs[key],
|
||||
]),
|
||||
)
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue