modify process group id before submitting w/ burnettk
This commit is contained in:
parent
466a8b8ec0
commit
defecafc5d
|
@ -55,7 +55,7 @@ export default function ProcessGroupForm({
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
let hasErrors = false;
|
let hasErrors = false;
|
||||||
if (!hasValidIdentifier(processGroup.id)) {
|
if (mode === 'new' && !hasValidIdentifier(processGroup.id)) {
|
||||||
setIdentifierInvalid(true);
|
setIdentifierInvalid(true);
|
||||||
hasErrors = true;
|
hasErrors = true;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ export default function ProcessGroupForm({
|
||||||
}
|
}
|
||||||
let path = '/process-groups';
|
let path = '/process-groups';
|
||||||
if (mode === 'edit') {
|
if (mode === 'edit') {
|
||||||
path = `/process-groups/${processGroup.id}`;
|
path = `/process-groups/${modifyProcessModelPath(processGroup.id)}`;
|
||||||
}
|
}
|
||||||
let httpMethod = 'POST';
|
let httpMethod = 'POST';
|
||||||
if (mode === 'edit') {
|
if (mode === 'edit') {
|
||||||
|
|
Loading…
Reference in New Issue