fixed editing a process model w/ burnettk
This commit is contained in:
parent
d2a5faaed3
commit
53674b708f
|
@ -51,12 +51,15 @@ export default function ProcessModelForm({
|
||||||
if (hasErrors) {
|
if (hasErrors) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const path = `/process-models/${modifyProcessIdentifierForPathParam(
|
let path = `/process-models/${modifyProcessIdentifierForPathParam(
|
||||||
processGroupId || ''
|
processGroupId || ''
|
||||||
)}`;
|
)}`;
|
||||||
let httpMethod = 'POST';
|
let httpMethod = 'POST';
|
||||||
if (mode === 'edit') {
|
if (mode === 'edit') {
|
||||||
httpMethod = 'PUT';
|
httpMethod = 'PUT';
|
||||||
|
path = `/process-models/${modifyProcessIdentifierForPathParam(
|
||||||
|
processModel.id
|
||||||
|
)}`;
|
||||||
}
|
}
|
||||||
const postBody = {
|
const postBody = {
|
||||||
display_name: processModel.display_name,
|
display_name: processModel.display_name,
|
||||||
|
|
Loading…
Reference in New Issue