Skip to content

Commit 93dd49c

Browse files
committed
fix breadcrumb
1 parent a2db7b4 commit 93dd49c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

client/src/components/design-elements/Breadcrumb.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ export const Breadcrumb = ({
6565
const last = index === pathnames.length - 1;
6666
const to = `/${pathnames.slice(0, index + 1).join("/")}`;
6767

68-
let displayName =
69-
t(`common.breadcrumbs.${value}`) ||
70-
value.charAt(0).toUpperCase() + value.slice(1);
68+
let displayName = "";
7169

7270
// Paths that are IDs should be detail pages
7371
if (value.length === 24 || value.match(/^[a-f0-9-]{36}$/)) {
7472
displayName = "Details";
73+
} else {
74+
displayName =
75+
t(`common.breadcrumbs.${value}`) ||
76+
value.charAt(0).toUpperCase() + value.slice(1);
7577
}
7678

7779
return last ? (

0 commit comments

Comments
 (0)