Skip to content

Commit

Permalink
Optional proxy in config (#11973)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Jun 15, 2024
1 parent 15e2df1 commit 5617fbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/menu/AccountSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5617fbb

Please sign in to comment.