mirror of
https://github.com/unraid/api.git
synced 2026-02-16 13:08:28 -06:00
fix: allow null for the local entry in the myservers cfg
This commit is contained in:
@@ -38,14 +38,14 @@ export const getWriteableConfig = <T extends ConfigType>(
|
||||
...(api.extraOrigins ? { extraOrigins: api.extraOrigins } : {}),
|
||||
},
|
||||
local: {
|
||||
...(local['2Fa'] === 'yes' ? { '2Fa': local['2Fa'] } : {}),
|
||||
...(local.showT2Fa === 'yes' ? { showT2Fa: local.showT2Fa } : {}),
|
||||
...(local?.['2Fa'] === 'yes' ? { '2Fa': local['2Fa'] } : {}),
|
||||
...(local?.showT2Fa === 'yes' ? { showT2Fa: local.showT2Fa } : {}),
|
||||
},
|
||||
notifier: {
|
||||
apikey: notifier.apikey ?? initialState.notifier.apikey,
|
||||
},
|
||||
remote: {
|
||||
...(remote['2Fa'] === 'yes' ? { '2Fa': remote['2Fa'] } : {}),
|
||||
...(remote?.['2Fa'] === 'yes' ? { '2Fa': remote['2Fa'] } : {}),
|
||||
wanaccess: remote.wanaccess ?? initialState.remote.wanaccess,
|
||||
wanport: remote.wanport ?? initialState.remote.wanport,
|
||||
...(remote.upnpEnabled ? { upnpEnabled: remote.upnpEnabled } : {}),
|
||||
|
||||
Reference in New Issue
Block a user