diff --git a/spiffworkflow-frontend/src/components/ProcessModelForm.tsx b/spiffworkflow-frontend/src/components/ProcessModelForm.tsx index 49156ed4..9764bad9 100644 --- a/spiffworkflow-frontend/src/components/ProcessModelForm.tsx +++ b/spiffworkflow-frontend/src/components/ProcessModelForm.tsx @@ -14,14 +14,14 @@ import ButtonWithConfirmation from './ButtonWithConfirmation'; type OwnProps = { mode: string; processModel: ProcessModel; - process_group_id?: string; + processGroupId?: string; setProcessModel: (..._args: any[]) => any; }; export default function ProcessModelForm({ mode, processModel, - process_group_id, + processGroupId, setProcessModel, }: OwnProps) { const [identifierInvalid, setIdentifierInvalid] = useState(false); @@ -88,7 +88,7 @@ export default function ProcessModelForm({ }; if (mode === 'new') { Object.assign(postBody, { - id: `${process_group_id}/${processModel.id}`, + id: `${processGroupId}/${processModel.id}`, }); } diff --git a/spiffworkflow-frontend/src/routes/ProcessModelEdit.tsx b/spiffworkflow-frontend/src/routes/ProcessModelEdit.tsx index 4ee063e3..d87c5026 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelEdit.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelEdit.tsx @@ -24,7 +24,7 @@ export default function ProcessModelEdit() {

Edit Process Model: {(processModel as any).id}

diff --git a/spiffworkflow-frontend/src/routes/ProcessModelNew.tsx b/spiffworkflow-frontend/src/routes/ProcessModelNew.tsx index f147fa56..2dcfdb30 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelNew.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelNew.tsx @@ -20,7 +20,7 @@ export default function ProcessModelNew() {

Add Process Model

diff --git a/spiffworkflow-frontend/src/routes/ReactFormEditor.tsx b/spiffworkflow-frontend/src/routes/ReactFormEditor.tsx index d2ba03b7..0e4f9f61 100644 --- a/spiffworkflow-frontend/src/routes/ReactFormEditor.tsx +++ b/spiffworkflow-frontend/src/routes/ReactFormEditor.tsx @@ -145,6 +145,9 @@ export default function ReactFormEditor() { ); }; + const processModelFilePossibleNameString = processModelFile + ? (processModelFile as any).name + : ''; if (processModelFile || !params.file_name) { return (
@@ -158,7 +161,7 @@ export default function ReactFormEditor() { `Process Model: ${params.process_model_id}`, `process_model:${params.process_model_id}:link`, ], - [(processModelFile as any).name || ''], + [processModelFilePossibleNameString], ]} />