mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-17 13:41:41 +00:00
if we get a result back it will be a task with a model identifier
This commit is contained in:
parent
c6be5ea20c
commit
356cca8416
@ -42,10 +42,6 @@ export default function TaskShow() {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (permissionsLoaded) {
|
if (permissionsLoaded) {
|
||||||
const processResult = (result: ProcessInstanceTask) => {
|
const processResult = (result: ProcessInstanceTask) => {
|
||||||
// Assure we get a valid process model identifier back
|
|
||||||
if (!result.process_model_identifier) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
setTask(result);
|
setTask(result);
|
||||||
const url = `/task-data/${modifyProcessIdentifierForPathParam(
|
const url = `/task-data/${modifyProcessIdentifierForPathParam(
|
||||||
result.process_model_identifier
|
result.process_model_identifier
|
||||||
@ -59,7 +55,6 @@ export default function TaskShow() {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
};
|
};
|
||||||
HttpService.makeCallToBackend({
|
HttpService.makeCallToBackend({
|
||||||
path: `/tasks/${params.process_instance_id}/${params.task_id}`,
|
path: `/tasks/${params.process_instance_id}/${params.task_id}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user