Skip to content

NVR with realtime local object detection for IP cameras

Optional proxy in config (#11973)

Josh Hawkins5617fbbcb1e4
diff --git a/web/src/components/menu/AccountSettings.tsx b/web/src/components/menu/AccountSettings.tsx
index 41bbfa06e7..20c852e65a 100644
--- a/web/src/components/menu/AccountSettings.tsx
+++ b/web/src/components/menu/AccountSettings.tsx
@@ -26,7 +26,7 @@ type AccountSettingsProps = {
export default function AccountSettings({ className }: AccountSettingsProps) {
const { data: profile } = useSWR("profile");
const { data: config } = useSWR("config");
- const logoutUrl = config?.proxy.logout_url || "/api/logout";
+ const logoutUrl = config?.proxy?.logout_url || "/api/logout";
const Container = isDesktop ? DropdownMenu : Drawer;
const Trigger = isDesktop ? DropdownMenuTrigger : DrawerTrigger;