From f66332b3e33e824dff7f043058c4490829049dbf Mon Sep 17 00:00:00 2001 From: Tilen Komel Date: Sat, 31 Aug 2024 15:58:12 +0200 Subject: [PATCH] Handle undefined booleans --- src/components/PageComponents/Config/Security.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/PageComponents/Config/Security.tsx b/src/components/PageComponents/Config/Security.tsx index cc67c007..0a1117fe 100644 --- a/src/components/PageComponents/Config/Security.tsx +++ b/src/components/PageComponents/Config/Security.tsx @@ -122,6 +122,11 @@ export const Security = (): JSX.Element => { adminKey: adminKey, privateKey: privateKey, 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={[ @@ -170,7 +175,7 @@ export const Security = (): JSX.Element => { }, { label: "Admin Settings", - description: "Settings for Admin ", + description: "Settings for Admin", fields: [ { type: "toggle",