21412: set fullName to fall back to userName if undefined Arvados-DCO-1.1-Signed...
authorLisa Knox <lisaknox83@gmail.com>
Fri, 1 Mar 2024 20:25:58 +0000 (15:25 -0500)
committerLisa Knox <lisaknox83@gmail.com>
Fri, 1 Mar 2024 20:25:58 +0000 (15:25 -0500)
services/workbench2/src/store/breadcrumbs/breadcrumbs-actions.ts

index a374fd1a242508734f4e7bf80e097fd0cd45ad4f..501850d2c3c39154fbc2d168a48a58d6d5383531 100644 (file)
@@ -83,7 +83,7 @@ export const setSidePanelBreadcrumbs = (uuid: string) =>
                 // Handle another user root project
                 const user = getResource<UserResource>(uuid)(getState().resources);
                 breadcrumbs.push({
-                    label: (user as any)?.fullName || SidePanelTreeCategory.PROJECTS,
+                    label: (user as any)?.fullName || user?.username || uuid,
                     uuid: user?.uuid || uuid,
                     icon: getSidePanelIcon(SidePanelTreeCategory.PROJECTS)
                 });