modify process group id before submitting w/ burnettk

This commit is contained in:
jasquat 2022-11-22 10:53:29 -05:00
parent 466a8b8ec0
commit defecafc5d
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export default function ProcessGroupForm({
event.preventDefault();
let hasErrors = false;
if (!hasValidIdentifier(processGroup.id)) {
if (mode === 'new' && !hasValidIdentifier(processGroup.id)) {
setIdentifierInvalid(true);
hasErrors = true;
}
@ -68,7 +68,7 @@ export default function ProcessGroupForm({
}
let path = '/process-groups';
if (mode === 'edit') {
path = `/process-groups/${processGroup.id}`;
path = `/process-groups/${modifyProcessModelPath(processGroup.id)}`;
}
let httpMethod = 'POST';
if (mode === 'edit') {