diff --git a/agenta-web/src/components/Sidebar/Sidebar.tsx b/agenta-web/src/components/Sidebar/Sidebar.tsx index a90e43fef6..e3c0c403f2 100644 --- a/agenta-web/src/components/Sidebar/Sidebar.tsx +++ b/agenta-web/src/components/Sidebar/Sidebar.tsx @@ -381,21 +381,18 @@ const Sidebar: React.FC = () => { { key: "logout", label: ( -
{ - AlertPopup({ - title: "Logout", - message: - "Are you sure you want to logout?", - onOk: logout, - }) - }} - > +
Logout
), + onClick: () => { + AlertPopup({ + title: "Logout", + message: "Are you sure you want to logout?", + onOk: logout, + }) + }, }, ], selectedKeys: [selectedOrg.id],