fix tests
This commit is contained in:
parent
54298927da
commit
ff621d9d80
12 changed files with 78 additions and 63 deletions
|
|
@ -7,8 +7,8 @@ import { useInstanceStore } from 'src/stores/instance'
|
|||
import {
|
||||
LOCAL_DEFAULT_CONFIG,
|
||||
LOCAL_DEFAULT_CONFIG_DEFINITIONS,
|
||||
validateSetting,
|
||||
makeUndefined,
|
||||
validateSetting,
|
||||
} from 'src/modules/default_config_state'
|
||||
|
||||
export const defaultState = {
|
||||
|
|
@ -57,7 +57,9 @@ export const useLocalConfigStore = defineStore('local_config', {
|
|||
persist: {
|
||||
afterLoad(state) {
|
||||
return {
|
||||
prefsStorage: state.prefsStorage ?? { ...makeUndefined(LOCAL_DEFAULT_CONFIG) },
|
||||
prefsStorage: state.prefsStorage ?? {
|
||||
...makeUndefined(LOCAL_DEFAULT_CONFIG),
|
||||
},
|
||||
tempStorage: { ...makeUndefined(LOCAL_DEFAULT_CONFIG) },
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue