fixed editing a process model w/ burnettk

This commit is contained in:
jasquat 2022-11-22 16:41:29 -05:00
parent d2a5faaed3
commit 53674b708f
1 changed files with 4 additions and 1 deletions

View File

@ -51,12 +51,15 @@ export default function ProcessModelForm({
if (hasErrors) {
return;
}
const path = `/process-models/${modifyProcessIdentifierForPathParam(
let path = `/process-models/${modifyProcessIdentifierForPathParam(
processGroupId || ''
)}`;
let httpMethod = 'POST';
if (mode === 'edit') {
httpMethod = 'PUT';
path = `/process-models/${modifyProcessIdentifierForPathParam(
processModel.id
)}`;
}
const postBody = {
display_name: processModel.display_name,