fix not defaulting to hardcoded defaults
This commit is contained in:
parent
6a8abf1b32
commit
18b10ea042
6 changed files with 26 additions and 31 deletions
|
|
@ -32,7 +32,7 @@ export const useLocalConfigStore = defineStore('local_config', {
|
|||
unset({ path, value }) {
|
||||
set(this.prefsStorage, path, undefined)
|
||||
},
|
||||
clearSyncConfig() {
|
||||
clearLocalConfig() {
|
||||
const blankState = { ...cloneDeep(defaultState) }
|
||||
Object.keys(this).forEach((k) => {
|
||||
this.prefsStorage[k] = blankState[k]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue