Fixed mergedConfig misbehaving on first boot

This commit is contained in:
Henry Jameson 2021-06-14 10:58:32 +03:00
parent 38d9ea8b17
commit 63c22ad131

View file

@ -93,7 +93,8 @@ const config = {
const { defaultConfig } = rootGetters const { defaultConfig } = rootGetters
return { return {
...defaultConfig, ...defaultConfig,
...state // Do not override with undefined
...Object.fromEntries(Object.entries(state).filter(([k, v]) => v !== undefined))
} }
} }
}, },