fix errors on initial pleroma-fe boot
This commit is contained in:
parent
cfe558b784
commit
91595c19ae
2 changed files with 3 additions and 2 deletions
|
|
@ -796,11 +796,12 @@ export const useSyncConfigStore = defineStore('sync_config', {
|
|||
afterLoad(state) {
|
||||
console.debug('Validating persisted state of SyncConfig')
|
||||
const newState = { ...state }
|
||||
newState.prefsStorage = newState.prefsStorage || {}
|
||||
const newEntries = Object.entries(ROOT_CONFIG).map(([path, value]) => {
|
||||
const definition = ROOT_CONFIG_DEFINITIONS[path]
|
||||
const finalValue = validateSetting({
|
||||
path,
|
||||
value: newState.prefsStorage.simple[path],
|
||||
value: newState.prefsStorage.simple?.[path],
|
||||
definition,
|
||||
throwError: false,
|
||||
validateObjects: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue