Skip to content

Commit

Permalink
Handle undefined booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
KomelT committed Aug 31, 2024
1 parent 4bde402 commit f66332b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/PageComponents/Config/Security.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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={[
Expand Down Expand Up @@ -170,7 +175,7 @@ export const Security = (): JSX.Element => {
},
{
label: "Admin Settings",
description: "Settings for Admin ",
description: "Settings for Admin",
fields: [
{
type: "toggle",
Expand Down

0 comments on commit f66332b

Please sign in to comment.