if we get a result back it will be a task with a model identifier

This commit is contained in:
jasquat 2023-01-26 09:54:18 -05:00
parent c6be5ea20c
commit 356cca8416

View File

@ -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}`,