Skip to content

Commit 2aa1603

Browse files
committed
Fix sidebar navigation bug
1 parent 799d0ab commit 2aa1603

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llmstack/client/src/components/sidebar.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ export default function Sidebar({ menuItems }) {
412412
}}
413413
onClick={(e) => {
414414
e.preventDefault();
415-
navigate(`/u/${profile?.username}`);
415+
416+
if (isLoggedIn && profile?.username) {
417+
navigate(`/u/${profile?.username}`);
418+
}
416419
}}
417420
>
418421
<ListItemIcon

0 commit comments

Comments
 (0)