fix: Kontomenü stürzt beim Öffnen ab (Base UI error #31)
Backend Image / build-and-push (push) Successful in 3m9s
Frontend Image / build-and-push (push) Successful in 2m55s

DropdownMenuLabel (rendert Menu.GroupLabel) stand direkt im
DropdownMenuContent statt in einem DropdownMenuGroup - Base UI wirft
dafür beim Öffnen einen ungefangenen Fehler, der den kompletten
React-Baum crasht. Das war die eigentliche Ursache des seit Sitzungsbeginn
gemeldeten "This page couldn't load" beim Klick auf das Profilbild
oben rechts, nicht der Service Worker (der war schon korrekt).
This commit is contained in:
Nick Szaunig committed 2026-09-01 17:23:39 +02:00
1 parent 938239e16e
commit 55b6dff31b
1 file changed
+3
@@ -11,6 +11,7 @@ import { UserAvatar } from "@/components/user-avatar";
import { import {
DropdownMenu, DropdownMenu,
DropdownMenuContent, DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuItem, DropdownMenuItem,
DropdownMenuLabel, DropdownMenuLabel,
DropdownMenuSeparator, DropdownMenuSeparator,
@@ -60,9 +61,11 @@ export default function AppLayout({ children }: { children: ReactNode }) {
<UserAvatar name={user.name} hasAvatar={user.hasAvatar} size="sm" /> <UserAvatar name={user.name} hasAvatar={user.hasAvatar} size="sm" />
</DropdownMenuTrigger> </DropdownMenuTrigger>
<DropdownMenuContent align="end"> <DropdownMenuContent align="end">
<DropdownMenuGroup>
<DropdownMenuLabel className="max-w-48 truncate font-normal text-muted-foreground"> <DropdownMenuLabel className="max-w-48 truncate font-normal text-muted-foreground">
{user.email} {user.email}
</DropdownMenuLabel> </DropdownMenuLabel>
</DropdownMenuGroup>
<DropdownMenuSeparator /> <DropdownMenuSeparator />
<DropdownMenuItem render={<Link href="/profile" />}> <DropdownMenuItem render={<Link href="/profile" />}>
Profil Profil