forked from AkkomaGang/akkoma-fe
fix settings behaving erratically and not updating properly
This commit is contained in:
parent
3a5ad18aca
commit
8bb97fbfeb
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ export const customAPIs = {
|
|||
'blockNotificationsFromStrangers': 'updateNotificationSettings'
|
||||
}
|
||||
|
||||
export const defaultState = Object.fromEntries(Object.keys(settingsMapGet).map(key => [key, undefined]))
|
||||
export const defaultState = Object.fromEntries(Object.keys(settingsMapGet).map(key => [key, null]))
|
||||
|
||||
const serverSideConfig = {
|
||||
state: { ...defaultState },
|
||||
|
@ -53,7 +53,7 @@ const serverSideConfig = {
|
|||
set(state, name, value)
|
||||
},
|
||||
wipeServerSideOption (state, { name }) {
|
||||
set(state, name, undefined)
|
||||
set(state, name, null)
|
||||
},
|
||||
// Set the settings based on their path location
|
||||
setCurrentUser (state, user) {
|
||||
|
|
Loading…
Reference in a new issue