camelcase

This commit is contained in:
burnettk 2022-11-09 09:18:01 -05:00
parent c3fe05c698
commit cbfc347d10
4 changed files with 9 additions and 6 deletions

View File

@ -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<boolean>(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}`,
});
}

View File

@ -24,7 +24,7 @@ export default function ProcessModelEdit() {
<h2>Edit Process Model: {(processModel as any).id}</h2>
<ProcessModelForm
mode="edit"
process_group_id={params.process_group_id}
processGroupId={params.process_group_id}
processModel={processModel}
setProcessModel={setProcessModel}
/>

View File

@ -20,7 +20,7 @@ export default function ProcessModelNew() {
<h2>Add Process Model</h2>
<ProcessModelForm
mode="new"
process_group_id={params.process_group_id}
processGroupId={params.process_group_id}
processModel={processModel}
setProcessModel={setProcessModel}
/>

View File

@ -145,6 +145,9 @@ export default function ReactFormEditor() {
);
};
const processModelFilePossibleNameString = processModelFile
? (processModelFile as any).name
: '';
if (processModelFile || !params.file_name) {
return (
<main>
@ -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],
]}
/>
<h2>