mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-05 06:04:32 +00:00
fixed editing a process model w/ burnettk
This commit is contained in:
parent
5dbca5c349
commit
e8da399fb0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user