mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-03 19:00:32 +00:00
fixed a path issue with the breadcrumb
This commit is contained in:
parent
90375a0c88
commit
cf48d572f6
@ -6,7 +6,7 @@ import 'react-bootstrap-typeahead/css/Typeahead.css';
|
|||||||
import 'react-bootstrap-typeahead/css/Typeahead.bs5.css';
|
import 'react-bootstrap-typeahead/css/Typeahead.bs5.css';
|
||||||
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
import ProcessBreadcrumb from '../components/ProcessBreadcrumb';
|
||||||
import ProcessInstanceListTable from '../components/ProcessInstanceListTable';
|
import ProcessInstanceListTable from '../components/ProcessInstanceListTable';
|
||||||
import { getProcessModelFullIdentifierFromSearchParams } from '../helpers';
|
import {getProcessModelFullIdentifierFromSearchParams, modifyProcessIdentifierForPathParam} from '../helpers';
|
||||||
|
|
||||||
export default function ProcessInstanceList() {
|
export default function ProcessInstanceList() {
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
@ -16,6 +16,9 @@ export default function ProcessInstanceList() {
|
|||||||
if (processModelFullIdentifier === null) {
|
if (processModelFullIdentifier === null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
const modifiedProcessModelId = modifyProcessIdentifierForPathParam(
|
||||||
|
processModelFullIdentifier
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ProcessBreadcrumb
|
<ProcessBreadcrumb
|
||||||
@ -23,7 +26,7 @@ export default function ProcessInstanceList() {
|
|||||||
['Process Groups', '/admin'],
|
['Process Groups', '/admin'],
|
||||||
[
|
[
|
||||||
`Process Model: ${processModelFullIdentifier}`,
|
`Process Model: ${processModelFullIdentifier}`,
|
||||||
`process_model:${processModelFullIdentifier}:link`,
|
`process-models/${modifiedProcessModelId}`,
|
||||||
],
|
],
|
||||||
['Process Instances'],
|
['Process Instances'],
|
||||||
]}
|
]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user