fix invalid option copy

This commit is contained in:
Henry Jameson 2026-01-29 15:07:00 +02:00
commit 912aa228d1
9 changed files with 42 additions and 58 deletions

View file

@ -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