mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-11 18:14:20 +00:00
Merge commit '7a36189cbf9db07b735903625b23ea23b9fa8de7'
This commit is contained in:
commit
49187a32fa
@ -37,7 +37,9 @@ const explodeCrumb = (crumb: HotCrumbItem) => {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
breadcrumbItems.push(
|
breadcrumbItems.push(
|
||||||
<BreadcrumbItem isCurrentPage key={lastPathItem}>{lastPathItem}</BreadcrumbItem>
|
<BreadcrumbItem isCurrentPage key={lastPathItem}>
|
||||||
|
{lastPathItem}
|
||||||
|
</BreadcrumbItem>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return breadcrumbItems;
|
return breadcrumbItems;
|
||||||
@ -56,7 +58,11 @@ export default function ProcessBreadcrumb({
|
|||||||
const valueLabel = crumb[0];
|
const valueLabel = crumb[0];
|
||||||
const url = crumb[1];
|
const url = crumb[1];
|
||||||
if (!url) {
|
if (!url) {
|
||||||
return <BreadcrumbItem isCurrentPage key={valueLabel}>{valueLabel}</BreadcrumbItem>;
|
return (
|
||||||
|
<BreadcrumbItem isCurrentPage key={valueLabel}>
|
||||||
|
{valueLabel}
|
||||||
|
</BreadcrumbItem>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (url && url.startsWith('process_model:')) {
|
if (url && url.startsWith('process_model:')) {
|
||||||
return explodeCrumb(crumb);
|
return explodeCrumb(crumb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user