mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-14 10:26:28 +00:00
add filename to breadcrumb if it is not already there w/ burnettk
This commit is contained in:
parent
f02c80d93e
commit
0fc4e3b630
@ -258,11 +258,11 @@ export default function ReactFormEditor() {
|
||||
|
||||
if (processModelFile || !params.file_name) {
|
||||
const processModelFileName = processModelFile ? processModelFile.name : '';
|
||||
if (processModelFileName) {
|
||||
const pmLength = params.process_model_id?.split(':').length || 0;
|
||||
if (hotCrumbs.current.length <= pmLength) {
|
||||
hotCrumbs.current.push([processModelFileName]);
|
||||
}
|
||||
if (
|
||||
processModelFileName &&
|
||||
(hotCrumbs.current.at(-1) || [])[0] !== processModelFileName
|
||||
) {
|
||||
hotCrumbs.current.push([processModelFileName]);
|
||||
}
|
||||
return (
|
||||
<main>
|
||||
|
Loading…
x
Reference in New Issue
Block a user