mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-27 16:40:32 +00:00
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();
|
||||
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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user