From 6fdf68bc890df48e3c9a9500b54f2deb9ede01a5 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 7 Apr 2026 12:13:16 -0500 Subject: [PATCH] Fix profile dropdown crash by wrapping GroupLabel in Group Menu.GroupLabel requires a parent Menu.Group for context. Without it, clicking the profile avatar crashed the client. Made-with: Cursor --- src/components/layout/top-bar.tsx | 39 +++++++++++++++++-------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/src/components/layout/top-bar.tsx b/src/components/layout/top-bar.tsx index 24952da..89bc4bf 100644 --- a/src/components/layout/top-bar.tsx +++ b/src/components/layout/top-bar.tsx @@ -21,6 +21,7 @@ import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, + DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel, @@ -122,26 +123,28 @@ export function TopBar() { - -
- - {profile.avatarUrl && } - - {initials || } - - -
-

- {profile.displayName || "Set up profile"} -

- {profile.email && ( -

- {profile.email} + + +

+ + {profile.avatarUrl && } + + {initials || } + + +
+

+ {profile.displayName || "Set up profile"}

- )} + {profile.email && ( +

+ {profile.email} +

+ )} +
-
- + + }>