Browse Source

Handle undefined booleans

pull/277/head
Tilen Komel 2 years ago
parent
commit
f66332b3e3
  1. 7
      src/components/PageComponents/Config/Security.tsx

7
src/components/PageComponents/Config/Security.tsx

@ -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",

Loading…
Cancel
Save