Handle undefined booleans

This commit is contained in:
Tilen Komel
2024-08-31 15:58:12 +02:00
parent 4bde402a53
commit f66332b3e3
@@ -122,6 +122,11 @@ export const Security = (): JSX.Element => {
adminKey: adminKey, adminKey: adminKey,
privateKey: privateKey, privateKey: privateKey,
publicKey: publicKey, publicKey: publicKey,
adminChannelEnabled: config.security?.adminChannelEnabled ?? false,
isManaged: config.security?.isManaged ?? false,
bluetoothLoggingEnabled: config.security?.bluetoothLoggingEnabled ?? false,
debugLogApiEnabled: config.security?.debugLogApiEnabled ?? false,
serialEnabled: config.security?.serialEnabled ?? false,
}, },
}} }}
fieldGroups={[ fieldGroups={[
@@ -170,7 +175,7 @@ export const Security = (): JSX.Element => {
}, },
{ {
label: "Admin Settings", label: "Admin Settings",
description: "Settings for Admin ", description: "Settings for Admin",
fields: [ fields: [
{ {
type: "toggle", type: "toggle",