fixed a path issue with the breadcrumb

This commit is contained in:
mike cullerton 2022-12-15 17:49:20 -05:00
parent 90375a0c88
commit cf48d572f6
1 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import 'react-bootstrap-typeahead/css/Typeahead.css';
import 'react-bootstrap-typeahead/css/Typeahead.bs5.css';
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
import ProcessInstanceListTable from '../components/ProcessInstanceListTable';
import { getProcessModelFullIdentifierFromSearchParams } from '../helpers';
import {getProcessModelFullIdentifierFromSearchParams, modifyProcessIdentifierForPathParam} from '../helpers';
export default function ProcessInstanceList() {
const [searchParams] = useSearchParams();
@ -16,6 +16,9 @@ export default function ProcessInstanceList() {
if (processModelFullIdentifier === null) {
return null;
}
const modifiedProcessModelId = modifyProcessIdentifierForPathParam(
processModelFullIdentifier
);
return (
<ProcessBreadcrumb
@ -23,7 +26,7 @@ export default function ProcessInstanceList() {
['Process Groups', '/admin'],
[
`Process Model: ${processModelFullIdentifier}`,
`process_model:${processModelFullIdentifier}:link`,
`process-models/${modifiedProcessModelId}`,
],
['Process Instances'],
]}