Squashed 'spiffworkflow-frontend/' changes from 13b7ebaa1..3ab257b81
3ab257b81 lint issue w/ burnettk cullerton git-subtree-dir: spiffworkflow-frontend git-subtree-split: 3ab257b8103c7b0087bcda41a933eb68b9bbf81c
This commit is contained in:
parent
d1f95114f8
commit
7a36189cbf
|
@ -37,7 +37,9 @@ const explodeCrumb = (crumb: HotCrumbItem) => {
|
|||
);
|
||||
} else {
|
||||
breadcrumbItems.push(
|
||||
<BreadcrumbItem isCurrentPage key={lastPathItem}>{lastPathItem}</BreadcrumbItem>
|
||||
<BreadcrumbItem isCurrentPage key={lastPathItem}>
|
||||
{lastPathItem}
|
||||
</BreadcrumbItem>
|
||||
);
|
||||
}
|
||||
return breadcrumbItems;
|
||||
|
@ -56,7 +58,11 @@ export default function ProcessBreadcrumb({
|
|||
const valueLabel = crumb[0];
|
||||
const url = crumb[1];
|
||||
if (!url) {
|
||||
return <BreadcrumbItem isCurrentPage key={valueLabel}>{valueLabel}</BreadcrumbItem>;
|
||||
return (
|
||||
<BreadcrumbItem isCurrentPage key={valueLabel}>
|
||||
{valueLabel}
|
||||
</BreadcrumbItem>
|
||||
);
|
||||
}
|
||||
if (url && url.startsWith('process_model:')) {
|
||||
return explodeCrumb(crumb);
|
||||
|
|
Loading…
Reference in New Issue