feat: always show DRA even if disabled

This commit is contained in:
Eli Bosley
2023-12-12 09:27:50 -05:00
parent 6b72f188ef
commit 08f7f95ea0

View File

@@ -65,12 +65,7 @@ export const getWriteableConfig = <T extends ConfigType>(
getAllowedOrigins().join(', ')
}
: {}),
...(remote.dynamicRemoteAccessType ===
DynamicRemoteAccessType.DISABLED
? {}
: {
dynamicRemoteAccessType: remote.dynamicRemoteAccessType,
}),
dynamicRemoteAccessType: remote.dynamicRemoteAccessType ?? DynamicRemoteAccessType.DISABLED,
},
upc: {
apikey: upc.apikey ?? initialState.upc.apikey,